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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/editability/empty-document-delete.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/editability/empty-document-delete-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("Delete", false, null); 12 document.execCommand("Delete", false, null);
13 document.writeln('This test ensures WebKit does not crash when executing Del ete in an empty document.<br><br>PASS'); 13 document.body.innerHTML = 'This test ensures WebKit does not crash when exec uting Delete 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/editability/empty-document-delete-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698