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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/append-node-under-document.html

Issue 2235643002: Code cleanup related to unified text checker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@EnableUnifiedTextCheckerByDefault
Patch Set: Rebased on removal of grammar-checking code Created 4 years, 4 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="runTest()"> 3 <body onload="runTest()">
4 <script> 4 <script>
5 5
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 8
9 if (window.internals)
10 internals.settings.setUnifiedTextCheckerEnabled(true);
11
12 function runTest() { 9 function runTest() {
13 document.designMode = "on"; 10 document.designMode = "on";
14 document.open(); 11 document.open();
15 var parent = document.appendChild(document.createElement('iframe')); 12 var parent = document.appendChild(document.createElement('iframe'));
16 parent.appendChild(document.createElement('iframe')); 13 parent.appendChild(document.createElement('iframe'));
17 parent.focus(); 14 parent.focus();
18 document.execCommand("InsertHorizontalRule"); 15 document.execCommand("InsertHorizontalRule");
19 16
20 document.open(); 17 document.open();
21 document.writeln('This test ensures WebKit does not crash when replacing conte nts in a document whose the only content is a nested iframes.<br>PASS.'); 18 document.writeln('This test ensures WebKit does not crash when replacing conte nts in a document whose the only content is a nested iframes.<br>PASS.');
22 } 19 }
23 20
24 </script> 21 </script>
25 </body> 22 </body>
26 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698