WebCore/manual-tests/empty-link-target.html
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 17 Sep 2010 09:02:29 +0300
changeset 0 4f2f89ce4247
permissions -rw-r--r--
Revision: 201037

<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>