OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 We pass if we don't crash under ASAN. | 2 We pass if we don't crash under ASAN. |
3 <iframe id=iframe src="../navigation/resources/blank.txt"></iframe> | 3 <iframe id=iframe src="../navigation/resources/blank.txt"></iframe> |
4 <script> | 4 <script> |
5 if (window.testRunner) { | 5 if (window.testRunner) { |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
8 } | 8 } |
9 | 9 |
10 window.onload = function() | 10 window.onload = function() |
11 { | 11 { |
12 iframe.remove(); | 12 iframe.remove(); |
13 gc(); | 13 // Run the GC after this event handler has completed & back at the event loo
p. |
| 14 setTimeout(gc); |
14 } | 15 } |
15 | 16 |
16 document.addEventListener("DOMContentLoaded", function() { | 17 document.addEventListener("DOMContentLoaded", function() { |
17 setTimeout(function() { | 18 setTimeout(function() { |
18 document.adoptNode(iframe.attributes["src"]); | 19 document.adoptNode(iframe.attributes["src"]); |
19 if (window.testRunner) | 20 if (window.testRunner) |
20 testRunner.notifyDone(); | 21 testRunner.notifyDone(); |
21 }, 0); | 22 }, 0); |
22 }, false); | 23 }, false); |
23 </script> | 24 </script> |
OLD | NEW |