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

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

Issue 2109543002: Make SpellChecker::didBeginEdit() not to crash with IFRAME parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-06-28T17:34:15 Created 4 years, 5 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
9 function runTest() { 12 function runTest() {
10 document.designMode = "on"; 13 document.designMode = "on";
11 document.open(); 14 document.open();
12 var parent = document.appendChild(document.createElement('iframe')); 15 var parent = document.appendChild(document.createElement('iframe'));
13 parent.appendChild(document.createElement('iframe')); 16 parent.appendChild(document.createElement('iframe'));
14 parent.focus(); 17 parent.focus();
15 document.execCommand("InsertHorizontalRule"); 18 document.execCommand("InsertHorizontalRule");
16 19
17 document.open(); 20 document.open();
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.'); 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.');
19 } 22 }
20 23
21 </script> 24 </script>
22 </body> 25 </body>
23 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698