| testRunner.waitUntilDone(); |
| return GCController.collect(); |
| for (var i = 0; i < 10000; i++) { // force garbage collection (FF requires about 9K allocations before a collect). |
| var s = new String("abc"); |
| aElement = document.createElement('a'); |
| divElement = document.createElement('div'); |
| document.body.appendChild(divElement); |
| nodeIterator = win.document.createNodeIterator(aElement); |
| win.document.body.appendChild(aElement); |
| document.body.removeChild(divElement); |
| <iframe onload="this.onload = null; win = this.contentWindow; runTest();"></iframe> |
| Test passes if it does not crash. |