Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/loader/create-view-target-blank.html

Issue 2680353005: WebContents created via ctrl-click should be in a new process (target=_blank). (Closed)
Patch Set: Rebasing updating LayoutTest/FlagExpectations to account for test name change. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.dumpCreateView();
7 testRunner.setCanOpenWindows();
8 testRunner.setCloseRemainingWindowsWhenComplete();
9 testRunner.waitUntilDone();
10 }
11
12 function runTest() {
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);
18 }
19 </script>
20 </head>
21 <body onload="runTest()">
22 <div>
23 <p>
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".
27 </p>
28 <p>
29 <a href="resources/done.html" id="link" target="_blank">link</a>
30 </p>
31 </div>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698