Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / css / multiple-cursors-crash.html
blobb0e0c73c507c99709e71222440ddcd221560ccc9
1 <html>
2 <script>
3 svgNS = "http://www.w3.org/2000/svg";
5 gc = window.gc || function()
7 if (window.GCController)
8 GCController.collect();
10 for (var i = 0; i < 10000; ++i)
11 var s = new String("AAAA");
14 window.onload = function()
16 if (window.testRunner) {
17 testRunner.dumpAsText();
18 testRunner.waitUntilDone();
21 cursor = document.body.appendChild(document.createElementNS(svgNS, "cursor"));
22 cursor.id = "cursor";
24 element = document.body.appendChild(document.createElementNS(svgNS, "element"));
25 element.style.setProperty("cursor", "url(#cursor)");
27 setTimeout(step2, 0);
30 function step2()
32 fakeCursor = document.body.insertBefore(document.createElementNS(svgNS, "cursor"), cursor);
33 fakeCursor.id = "cursor";
35 element.style.removeProperty("cursor");
37 document.body.removeChild(element);
38 element = null;
39 gc();
41 setTimeout(finishTest, 0);
44 function finishTest()
46 document.body.removeChild(cursor);
47 cursor = null;
48 gc();
50 document.body.innerHTML = "PASS";
51 if (window.testRunner)
52 testRunner.notifyDone();
54 </script>
55 </html>