Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: third_party/WebKit/LayoutTests/editing/editability/empty-document-justify-right.html

Issue 1637323002: Editing: Tidy up HTML document structure before execCommand(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert the Node.cpp change Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 function runTest() { 8 function runTest() {
9 document.designMode="on"; 9 document.designMode="on";
10 document.open(); 10 document.open();
11 window.getSelection().addRange(document.createRange()); 11 window.getSelection().addRange(document.createRange());
12 document.execCommand("JustifyRight", false, null); 12 document.execCommand("JustifyRight", false, null);
13 document.writeln('This test ensures WebKit does not crash when executing Jus tifyRight in an empty document.<br><br>PASS'); 13 document.body.innerHTML = 'This test ensures WebKit does not crash when exec uting JustifyRight in an empty document.<br><br>PASS';
14 } 14 }
15 </script> 15 </script>
16 </head> 16 </head>
17 <body onload="runTest()"></body> 17 <body onload="runTest()"></body>
18 </html> 18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698