summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/empty-link-target.html
blob: 06ccd0c7201b55878a90a51e4fc9ec244a983685 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html>
<head><script>
function print(message) {
    var paragraph = document.createElement("p");
    paragraph.appendChild(document.createTextNode(message));
    document.getElementById("console").appendChild(paragraph);
}

function test()
{
    if (window.layoutTestController)
        layoutTestController.dumpAsText();
        
    var e = document.createEvent("MouseEvents");
    e.initEvent("click", true, false);
    document.getElementById('a').dispatchEvent(e);
    print("PASS");
}
</script></head>

<body onload="test()">
<p>Bug: <a href="http://bugs.webkit.org/show_bug.cgi?id=6382">REGRESSION: Repro crash when clicking link with target="_blank"</a></p>
<p>If the test passes, you will see a PASS message below. (It's normal for a new window to open.)</p>
<hr>
<a id="a" href="resources/popup200x200.html" target="_blank"></a>
<div id='console'/>
</body>
</html>