Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / execCommand / 25256.html
1 <div id="description">This tests for https://bugs.webkit.org/show_bug.cgi?id=25256 where we would add a newline during an alignment change operation. You should see a single paragraph in the editable region below, and it should be right aligned.</div>
2 <div id="edit" contentEditable="true"><br></div>
3
4 <script>
5 edit = document.getElementById("edit");
6 edit.focus();
7 document.execCommand("JustifyRight");
8 if (window.testRunner) {
9     testRunner.dumpAsText();
10     document.body.innerText = document.getElementById("description").innerText + "\n\n" + edit.innerHTML;
11 }
12 </script>