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

Side by Side Diff: LayoutTests/editing/undo/crash-redo-with-iframes.html

Issue 561813003: Prepare blink to unify definitions of load completion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add document.close() to scroll-left-while-loading.html Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <body> 2 <body>
3 PASS if Blink doesn't crash. 3 PASS if Blink doesn't crash.
4 <div id="container"> 4 <div id="container">
5 <div id="sample" contenteditable="true"></div> 5 <div id="sample" contenteditable="true"></div>
6 </div> 6 </div>
7 </body> 7 </body>
8 <script> 8 <script>
9 if (window.testRunner) 9 if (window.testRunner)
10 testRunner.dumpAsText(); 10 testRunner.dumpAsText();
11 var container = document.getElementById('container'); 11 var container = document.getElementById('container');
12 var iframe0 = document.createElement('iframe'); 12 var iframe0 = document.createElement('iframe');
13 container.appendChild(iframe0); 13 container.appendChild(iframe0);
14 var sample = document.getElementById('sample'); 14 var sample = document.getElementById('sample');
15 var iframe1 = document.createElement('iframe'); 15 var iframe1 = document.createElement('iframe');
16 document.documentElement.appendChild(iframe1); 16 document.documentElement.appendChild(iframe1);
17 17
18 var iframe2 = document.createElement('iframe'); 18 var iframe2 = document.createElement('iframe');
19 var documentElement0 = iframe0.contentDocument.documentElement; 19 var documentElement0 = iframe0.contentDocument.documentElement;
20 sample.appendChild(documentElement0); 20 sample.appendChild(documentElement0);
21 documentElement0.appendChild(iframe2); 21 documentElement0.appendChild(iframe2);
22 window.getSelection().selectAllChildren(iframe2); 22 window.getSelection().selectAllChildren(iframe2);
23 23
24 var iframe3 = document.createElement('iframe'); 24 var iframe3 = document.createElement('iframe');
25 sample.appendChild(iframe3); 25 sample.appendChild(iframe3);
26 26
27 document.execCommand('SelectAll'); 27 document.execCommand('SelectAll');
28 document.execCommand('CreateLink', false, 'foobar'); 28 document.execCommand('CreateLink', false, 'foobar');
29 iframe1.contentWindow.document.write('0123456789'); 29 iframe1.contentWindow.document.write('0123456789');
30 iframe1.contentWindow.document.close();
30 document.execCommand('Undo'); 31 document.execCommand('Undo');
31 32
32 var iframe4 = document.createElement('iframe'); 33 var iframe4 = document.createElement('iframe');
33 iframe3.appendChild(iframe4); 34 iframe3.appendChild(iframe4);
34 iframe1.contentDocument.documentElement.appendChild(iframe3); 35 iframe1.contentDocument.documentElement.appendChild(iframe3);
35 36
36 var document4 = iframe4.ownerDocument; 37 var document4 = iframe4.ownerDocument;
37 document4.execCommand('Redo'); 38 document4.execCommand('Redo');
38 document4.execCommand('InsertOrderedList'); 39 document4.execCommand('InsertOrderedList');
39 40
40 container.outerHTML = ''; 41 container.outerHTML = '';
41 </script> 42 </script>
42 </html> 43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698