4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.dumpCreateView();
7 testRunner
.setCanOpenWindows();
8 testRunner
.setCloseRemainingWindowsWhenComplete();
9 testRunner
.waitUntilDone();
13 var link
= document
.getElementById("link");
14 var middleMouseButton
= 1;
15 eventSender
.mouseMoveTo(link
.offsetLeft
+ 2, link
.offsetTop
+ 2);
16 eventSender
.mouseDown(middleMouseButton
);
17 eventSender
.mouseUp(middleMouseButton
);
21 <body onload=
"runTest()">
24 This test opens a new window by middle-clicking on a link with
25 target=_blank. It passes, if the WebViewClient::createView method was
26 invoked with the parameter
"done.html".
29 <a href=
"resources/done.html" id=
"link" target=
"_blank">link
</a>