Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / click-internal-anchor-with-use-crash.xhtml
blob71851166cfb8849db5b4f37d01a3a82b266b4e34
1 <?xml version="1.0" encoding="utf-8"?>
2 <html>
3 <svg xmlns="http://www.w3.org/2000/svg" onload="onLoad()" xmlns:xlink="http://www.w3.org/1999/xlink">
4 <script type="text/javascript">
5 function onLoad()
7 clickLink(document.getElementById("link"));
9 if (window.testRunner)
10 testRunner.dumpAsText();
13 function clickLink(link)
15 var event = document.createEvent("MouseEvents");
16 event.initMouseEvent("click", true, true, window,
17 0, 0, 0, 0, 0,
18 false, false, false, false,
19 0, null);
20 link.dispatchEvent(event);
22 </script>
23 <a id="link" xlink:href="#">
24 <text x="50" y="50">PASS if no crash</text>
25 </a>
26 </svg>
27 </html>