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 iteratorRoot
= document
.createElement('div');
22 element
= iteratorRoot
.appendChild(document
.createElement('div'));
23 element
.appendChild(document
.createElement('div'));
25 iterator
= document
.createNodeIterator(iteratorRoot
, -1);
26 iterator
.nextNode(); iterator
.nextNode(); iterator
.nextNode();
27 iterator
.previousNode();
29 iteratorRoot
.removeChild(element
);
31 otherDocument
= document
.implementation
.createHTMLDocument();
32 otherDocument
.body
.appendChild(iteratorRoot
);
36 div
= document
.body
.appendChild(document
.createElement('div'));
37 document
.body
.removeChild(div
);
40 if (window
.testRunner
)
41 testRunner
.notifyDone();
45 <body onload=
"runTest()">
46 Test passes if it does not crash.