OLD | NEW |
1 <body> | 1 <body> |
| 2 <script src="../../js/resources/js-test-pre.js"></script> |
2 <script> | 3 <script> |
3 if (window.testRunner) { | 4 window.jsTestIsAsync = true; |
4 testRunner.dumpAsText(); | |
5 testRunner.waitUntilDone(); | |
6 } | |
7 | |
8 function gc() | |
9 { | |
10 if (window.GCController) | |
11 return GCController.collect(); | |
12 | |
13 for (var i = 0; i < 10000; i++) | |
14 var s = new String(""); | |
15 } | |
16 | 5 |
17 // Reload multiple times, to make crashing more likely. | 6 // Reload multiple times, to make crashing more likely. |
18 var iterationsLeft = 50; | 7 var iterationsLeft = 50; |
19 function test() | 8 function test() |
20 { | 9 { |
21 if (--iterationsLeft) { | 10 if (--iterationsLeft) { |
22 frames[0].history.go(0); | 11 frames[0].history.go(0); |
23 } else { | 12 } else { |
24 gc(); | 13 gc(); |
25 document.getElementById("result").innerText = frames[0].document.body.te
xtContent; | 14 debug(frames[0].document.body.outerHTML); |
26 if (window.testRunner) | 15 finishJSTest(); |
27 testRunner.notifyDone(); | |
28 } | 16 } |
29 } | 17 } |
30 </script> | 18 </script> |
31 <div id="result">FAIL</div> | |
32 <iframe src="resources/createDocument-with-used-doctype-frame.html" onload="test
()"></iframe> | 19 <iframe src="resources/createDocument-with-used-doctype-frame.html" onload="test
()"></iframe> |
| 20 <script src="../../js/resources/js-test-post.js"></script> |
33 </body> | 21 </body> |
OLD | NEW |