7a08719217aa55d800f8e1793e098f051f03102e
[WebKit-https.git] / LayoutTests / editing / editability / empty-document-justify-right.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.layoutTestController)
6     layoutTestController.dumpAsText();
7
8 function runTest() {
9     document.designMode="on";
10     document.open();
11     window.getSelection().addRange(document.createRange());
12     document.execCommand("JustifyRight", false, null);
13     document.writeln('This test ensures WebKit does not crash when executing JustifyRight in an empty document.<br><br>PASS');
14 }
15 </script>
16 </head>
17 <body onload="runTest()"></body>
18 </html>