equal
deleted
inserted
replaced
|
1 <html> |
|
2 <head><script> |
|
3 function print(message) { |
|
4 var paragraph = document.createElement("p"); |
|
5 paragraph.appendChild(document.createTextNode(message)); |
|
6 document.getElementById("console").appendChild(paragraph); |
|
7 } |
|
8 |
|
9 function test() |
|
10 { |
|
11 if (window.layoutTestController) |
|
12 layoutTestController.dumpAsText(); |
|
13 |
|
14 var e = document.createEvent("MouseEvents"); |
|
15 e.initEvent("click", true, false); |
|
16 document.getElementById('a').dispatchEvent(e); |
|
17 print("PASS"); |
|
18 } |
|
19 </script></head> |
|
20 |
|
21 <body onload="test()"> |
|
22 <p>Bug: <a href="http://bugs.webkit.org/show_bug.cgi?id=6382">REGRESSION: Repro crash when clicking link with target="_blank"</a></p> |
|
23 <p>If the test passes, you will see a PASS message below. (It's normal for a new window to open.)</p> |
|
24 <hr> |
|
25 <a id="a" href="resources/popup200x200.html" target="_blank"></a> |
|
26 <div id='console'/> |
|
27 </body> |
|
28 </html> |