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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/popup-blocked-from-fake-focus.html

Issue 2379313002: Fix 'noopener' targeting and return value. (Closed)
Patch Set: Rebase Created 4 years, 2 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 src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <textarea id="test" width="100" onfocus="popup()" onblur="popup()"></tex tarea> 6 <textarea id="test" width="100" onfocus="popup()" onblur="popup()"></tex tarea>
7 <div id="console"></div> 7 <div id="console"></div>
8 8
9 <script> 9 <script>
10 var win; 10 var win;
11 function popup() { 11 function popup() {
12 win = window.open("about:blank", "blank"); 12 win = window.open("about:blank", "blank");
13 shouldBeUndefined("win"); 13 shouldBeNull("win");
14 } 14 }
15 15
16 if (window.testRunner) { 16 if (window.testRunner) {
17 testRunner.dumpAsText(); 17 testRunner.dumpAsText();
18 testRunner.setCanOpenWindows(); 18 testRunner.setCanOpenWindows();
19 testRunner.setPopupBlockingEnabled(true); 19 testRunner.setPopupBlockingEnabled(true);
20 testRunner.setCloseRemainingWindowsWhenComplete(true); 20 testRunner.setCloseRemainingWindowsWhenComplete(true);
21 testRunner.waitUntilDone(); 21 testRunner.waitUntilDone();
22 } 22 }
23 23
24 document.getElementById("test").focus(); 24 document.getElementById("test").focus();
25 document.getElementById("test").blur(); 25 document.getElementById("test").blur();
26 26
27 if (window.testRunner) 27 if (window.testRunner)
28 testRunner.notifyDone(); 28 testRunner.notifyDone();
29 </script> 29 </script>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698