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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/insert-line-break-onload.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 <body onload="go()"> 3 <body onload="go()">
4 Test InsertLineBreak is called correctly without any exception. 4 Test InsertLineBreak is called correctly without any exception.
5 <script> 5 <script>
6 function go() { 6 function go() {
7 document.designMode="on"; 7 document.designMode="on";
8 document.write("</"); 8 document.write("</");
9 document.getSelection().addRange(document.createRange()); 9 document.getSelection().addRange(document.createRange());
10 document.execCommand("InsertLineBreak"); 10 document.execCommand("InsertLineBreak");
11 11
12 var result = "PASS"; 12 var result = "PASS";
13 if (window.testRunner) { 13 if (window.testRunner) {
14 document.write("<html>" + result + "<html>"); 14 document.body.innerHTML = result;
15 testRunner.dumpAsText(); 15 testRunner.dumpAsText();
16 } else 16 } else
17 document.write("<html>" + result + "<html>"); 17 document.body.innerHTML = result;
18 } 18 }
19 </script> 19 </script>
20 </body> 20 </body>
21 </html> 21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698