chromium/third_party/blink/web_tests/fast/loader/middle-click-target-blank.html

<html>
<head>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.dumpNavigationPolicy();
    testRunner.setPopupBlockingEnabled(false);
    testRunner.waitUntilDone();
}

function runTest() {
    var link = document.getElementById("link");
    var middleMouseButton = 1;
    eventSender.mouseMoveTo(link.offsetLeft + 2, link.offsetTop + 2);
    eventSender.mouseDown(middleMouseButton);
    eventSender.mouseUp(middleMouseButton);
}
</script>
</head>
<body onload="runTest()">
<div>
    <p>
        This test opens a new window by middle-clicking on a link with
        target=_blank. It passes, if the WebViewClient::createView method was
        invoked with the parameter "done.html".
    </p>
    <p>
        <a href="resources/done.html" id="link" target="_blank">link</a>
    </p>
</div>
</body>
</html>