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 object
= document
.createElement("object");
22 object
.innerHTML
= "<embed width=\"2\"/><element id=\"foo\"/>";
23 embed
= object
.firstChild
;
25 attr
= document
.createAttribute("width");
26 object
.setAttributeNode(attr
);
28 document
.body
.appendChild(object
);
33 setTimeout(finishTest
, 0);
36 finishTest = function()
38 document
.getElementById("foo");
40 if (window
.testRunner
)
41 testRunner
.notifyDone();