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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/loader/middle-click-target-blank.html

Issue 2680353005: WebContents created via ctrl-click should be in a new process (target=_blank). (Closed)
Patch Set: Change layout test expectations to match product code changes. 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.dumpCreateView(); 6 testRunner.dumpCreateView();
7 testRunner.dumpNavigationPolicy();
Łukasz Anforowicz 2017/04/14 19:29:10 This artificially preserves test coverage to get t
7 testRunner.setCanOpenWindows(); 8 testRunner.setCanOpenWindows();
8 testRunner.setCloseRemainingWindowsWhenComplete(); 9 testRunner.setCloseRemainingWindowsWhenComplete();
9 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
10 } 11 }
11 12
12 function runTest() { 13 function runTest() {
13 var link = document.getElementById("link"); 14 var link = document.getElementById("link");
14 var middleMouseButton = 1; 15 var middleMouseButton = 1;
15 eventSender.mouseMoveTo(link.offsetLeft + 2, link.offsetTop + 2); 16 eventSender.mouseMoveTo(link.offsetLeft + 2, link.offsetTop + 2);
16 eventSender.mouseDown(middleMouseButton); 17 eventSender.mouseDown(middleMouseButton);
17 eventSender.mouseUp(middleMouseButton); 18 eventSender.mouseUp(middleMouseButton);
18 } 19 }
19 </script> 20 </script>
20 </head> 21 </head>
21 <body onload="runTest()"> 22 <body onload="runTest()">
22 <div> 23 <div>
23 <p> 24 <p>
24 This test opens a new window by middle-clicking on a link with 25 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 target=_blank. It passes, if the WebViewClient::createView method was
26 invoked with the parameter "done.html". 27 invoked with the parameter "done.html".
27 </p> 28 </p>
28 <p> 29 <p>
29 <a href="resources/done.html" id="link" target="_blank">link</a> 30 <a href="resources/done.html" id="link" target="_blank">link</a>
30 </p> 31 </p>
31 </div> 32 </div>
32 </body> 33 </body>
33 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698