Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / non-styled-element-id-crash.html
blobbc9cb022f7608dce82eeba3617c6c9dabf869519
1 <html>
2 <head>
3 <script>
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 element = document.body.appendChild(document.createElementNS("foo", "bar"));
21 element.id = "bar";
22 element.setAttribute("id", "bar");
23 document.body.removeChild(element);
25 element = null;
26 gc();
28 setTimeout(finishTest, 0);
31 finishTest = function()
33 document.getElementById("bar");
35 if (window.testRunner)
36 testRunner.notifyDone();
38 </script>
39 <body>PASS</body>
40 </html>