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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/remove-body-during-title-creation.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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body><div><script>
4
5 if (!window.testRunner)
6 document.write("This test requires GCController.");
7 else {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
10
11 function crash() {
12 if (document.lastChild.firstChild.firstChild.firstChild) {
13 document.lastChild.removeChild(document.lastChild.firstChild);
14 GCController.collect();
15 setTimeout(function () {
16 document.body.innerHTML = "PASS. WebKit didn't crash."
17 testRunner.notifyDone();
18 }, 0);
19 }
20 GCController.collect();
21 }
22
23 setTimeout(function () {
24 document.addEventListener('DOMNodeInsertedIntoDocument', function () { c rash(); }, true);
25 document.addEventListener('DOMSubtreeModified', function () { /* noop */ }, false);
26 document.title = 'hello';
27 }, 0);
28 }
29
30 </script>
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698