OLD | NEW |
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <html> | 2 <html> |
3 <svg xmlns="http://www.w3.org/2000/svg" onload="onLoad()" xmlns:xlink="http:
//www.w3.org/1999/xlink"> | 3 <svg xmlns="http://www.w3.org/2000/svg" onload="onLoad()" xmlns:xlink="http:
//www.w3.org/1999/xlink"> |
4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
5 function onLoad() | 5 function onLoad() |
6 { | 6 { |
7 clickLink(document.getElementById("link")); | 7 clickLink(document.getElementById("link")); |
8 | 8 |
9 if (window.layoutTestController) | 9 if (window.layoutTestController) |
10 layoutTestController.dumpAsText(); | 10 layoutTestController.dumpAsText(); |
11 } | 11 } |
12 | 12 |
13 function clickLink(link) | 13 function clickLink(link) |
14 { | 14 { |
15 var event = document.createEvent("MouseEvents"); | 15 var event = document.createEvent("MouseEvents"); |
16 event.initMouseEvent("click", true, true, window, | 16 event.initMouseEvent("click", true, true, window, |
17 0, 0, 0, 0, 0, | 17 0, 0, 0, 0, 0, |
18 false, false, false, false, | 18 false, false, false, false, |
19 0, null); | 19 0, null); |
20 link.dispatchEvent(event); | 20 link.dispatchEvent(event); |
21 } | 21 } |
22 </script> | 22 </script> |
23 <a id="link" xlink:href="#"> | 23 <a id="link" xlink:href="#"> |
24 <text x="50" y="50">PASS if no crash</text> | 24 <text x="50" y="50">PASS if no crash</text> |
25 </a> | 25 </a> |
26 </svg> | 26 </svg> |
27 </html> | 27 </html> |
OLD | NEW |