OLD | NEW |
1 <head> | 1 <head> |
| 2 <script src="../../../resources/gc.js"></script> |
2 <script> | 3 <script> |
3 | 4 |
4 var pageHasLoaded = false; | 5 var pageHasLoaded = false; |
5 var frameHasLoaded = false; | 6 var frameHasLoaded = false; |
6 | 7 |
7 function gc() | |
8 { | |
9 if (window.GCController) | |
10 return GCController.collect(); | |
11 | |
12 for (var i = 0; i < 10000; i++) | |
13 var s = new String(""); | |
14 } | |
15 | |
16 function pageLoaded() | 8 function pageLoaded() |
17 { | 9 { |
18 if (window.testRunner) | 10 if (window.testRunner) |
19 testRunner.waitUntilDone(); | 11 testRunner.waitUntilDone(); |
20 | 12 |
21 pageHasLoaded = true; | 13 pageHasLoaded = true; |
22 if (pageHasLoaded && frameHasLoaded) | 14 if (pageHasLoaded && frameHasLoaded) |
23 runTest(); | 15 runTest(); |
24 } | 16 } |
25 | 17 |
(...skipping 21 matching lines...) Expand all Loading... |
47 if (window.testRunner) | 39 if (window.testRunner) |
48 testRunner.notifyDone(); | 40 testRunner.notifyDone(); |
49 } | 41 } |
50 | 42 |
51 </script> | 43 </script> |
52 </head> | 44 </head> |
53 <body onload="pageLoaded()"> | 45 <body onload="pageLoaded()"> |
54 <iframe id="frame" src="resources/adoptNode-node-list-cache-subframe.html" onloa
d="frameLoaded()"></iframe> | 46 <iframe id="frame" src="resources/adoptNode-node-list-cache-subframe.html" onloa
d="frameLoaded()"></iframe> |
55 <div id="result">TEST DID NOT RUN YET</div> | 47 <div id="result">TEST DID NOT RUN YET</div> |
56 </body> | 48 </body> |
OLD | NEW |