4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
9 gc
= window
.gc
|| function()
11 if (window
.GCController
)
12 return GCController
.collect();
14 for (var i
= 0; i
< 10000; ++i
)
15 var s
= new String("AAAA");
18 window
.onload = function()
20 parent
= document
.createElement("div");
21 parent
.innerHTML
= "<iframe></iframe><element id='element'/>";
23 iframe
= parent
.firstChild
;
24 iframe
.src
= "javascript:top.document.body.removeChild(top.parent)";
26 document
.body
.appendChild(parent
);
28 parent
= iframe
= null;
31 setTimeout(finishTest
, 0);
34 finishTest = function()
36 document
.getElementById("element");
38 if (window
.testRunner
)
39 testRunner
.notifyDone();