1 <div id=
"div" contenteditable=
"true">foo
</div>
5 window
.testRunner
.dumpAsText();
7 var div
= document
.getElementById("div");
9 document
.execCommand("JustifyCenter");
10 document
.execCommand("JustifyRight");
12 expected
= '<div style="text-align: right;">foo</div>';
13 actual
= div
.innerHTML
;
15 output
= "This tests for a bug where centering text would prevent it from being right or left aligned again. The paragraph should be right aligned.\n\n"
17 if (actual
== expected
)
20 output
+= "Failure. Expected: " + expected
+ ", found: " + actual
;
22 document
.body
.innerText
= output
;