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

Side by Side Diff: third_party/WebKit/LayoutTests/html/sections/remove-body-during-body-replacement.html

Issue 2669403002: Move tests for sections elements to html/sections/. (Closed)
Patch Set: Created 3 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body><div><script> 3 <body><div><script>
4 4
5 if (!window.testRunner) 5 if (!window.testRunner)
6 document.write("This test requires GCController."); 6 document.write("This test requires GCController.");
7 else { 7 else {
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 testRunner.waitUntilDone(); 9 testRunner.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("testRunner.notifyDone()", 0); 16 setTimeout("testRunner.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

Powered by Google App Engine
This is Rietveld 408576698