OLD | NEW |
1 <body> | 1 <body> |
2 <p>Test that messaging an inactive frameless document works as expected.</p> | 2 <p>Test that messaging an inactive frameless document works as expected.</p> |
3 <pre id=log></pre> | 3 <pre id=log></pre> |
| 4 <script src="../../resources/gc.js"></script> |
4 <script> | 5 <script> |
5 function gc() | |
6 { | |
7 if (window.GCController) | |
8 return GCController.collect(); | |
9 | |
10 for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires
about 9K allocations before a collect) | |
11 var s = new String("abc"); | |
12 } | |
13 } | |
14 | 6 |
15 function log(message) | 7 function log(message) |
16 { | 8 { |
17 document.getElementById("log").innerHTML += message + "<br>"; | 9 document.getElementById("log").innerHTML += message + "<br>"; |
18 } | 10 } |
19 | 11 |
20 if (window.testRunner) { | 12 if (window.testRunner) { |
21 testRunner.dumpAsText(); | 13 testRunner.dumpAsText(); |
22 testRunner.waitUntilDone(); | 14 testRunner.waitUntilDone(); |
23 } | 15 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 55 |
64 log("Didn't crash, freeze or respond: SUCCESS"); | 56 log("Didn't crash, freeze or respond: SUCCESS"); |
65 | 57 |
66 if (window.testRunner) | 58 if (window.testRunner) |
67 testRunner.notifyDone(); | 59 testRunner.notifyDone(); |
68 } | 60 } |
69 | 61 |
70 </script> | 62 </script> |
71 <iframe src="resources/message-port-iframe.html" onload="test()" width=0 height=
0 frameborder=0></iframe> | 63 <iframe src="resources/message-port-iframe.html" onload="test()" width=0 height=
0 frameborder=0></iframe> |
72 </body> | 64 </body> |
OLD | NEW |