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

Side by Side Diff: LayoutTests/fast/dom/remove-body-during-body-replacement.html

Issue 9371041: Merge 106972 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 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 | LayoutTests/fast/dom/remove-body-during-body-replacement-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 <body><div><script> 3 <body><div><script>
4 4
5 if (!window.layoutTestController) 5 if (!window.layoutTestController)
6 document.write("This test requires GCController."); 6 document.write("This test requires GCController.");
7 else { 7 else {
8 layoutTestController.dumpAsText(); 8 layoutTestController.dumpAsText();
9 layoutTestController.waitUntilDone(); 9 layoutTestController.waitUntilDone();
10 10
11 function crash() { 11 function crash() {
12 document.open(); 12 document.open();
13 document.write("PASS. WebKit didn't crash."); 13 document.write("PASS. WebKit didn't crash.");
14 document.close(); 14 document.close();
15 GCController.collect(); 15 GCController.collect();
16 setTimeout("layoutTestController.notifyDone()", 0); 16 setTimeout("layoutTestController.notifyDone()", 0);
17 } 17 }
18 18
19 setTimeout(function () { 19 setTimeout(function () {
20 document.addEventListener('DOMNodeInsertedIntoDocument', function () { c rash(); }, true); 20 document.addEventListener('DOMNodeInsertedIntoDocument', function () { c rash(); }, true);
21 document.addEventListener('DOMSubtreeModified', function () { /* noop */ }, false); 21 document.addEventListener('DOMSubtreeModified', function () { /* noop */ }, false);
22 document.body = document.createElement('body'); 22 document.body = document.createElement('body');
23 }, 0); 23 }, 0);
24 } 24 }
25 25
26 </script> 26 </script>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/remove-body-during-body-replacement-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698