4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
11 if (window
.GCController
)
12 return GCController
.collect();
14 for (var i
= 0; i
< 10000; i
++) { // force garbage collection (FF requires about 9K allocations before a collect).
15 var s
= new String("abc");
21 aElement
= document
.createElement('a');
22 divElement
= document
.createElement('div');
23 document
.body
.appendChild(divElement
);
24 nodeIterator
= win
.document
.createNodeIterator(aElement
);
25 win
.document
.body
.appendChild(aElement
);
29 document
.body
.removeChild(divElement
);
32 if (window
.testRunner
)
33 testRunner
.notifyDone();
38 <iframe onload=
"this.onload = null; win = this.contentWindow; runTest();"></iframe>
39 Test passes if it does not crash.