Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / node-iterator-reference-node-moved-crash.html
blobf21aad6b461153fee5cd65ef89cab02d6e7ff86b
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 function gc()
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");
19 function runTest()
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);
34 delete iterator;
35 gc();
36 div = document.body.appendChild(document.createElement('div'));
37 document.body.removeChild(div);
38 gc();
40 if (window.testRunner)
41 testRunner.notifyDone();
43 </script>
44 </head>
45 <body onload="runTest()">
46 Test passes if it does not crash.
47 </body>
48 </html>