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

Side by Side Diff: LayoutTests/fast/events/popup-blocked-from-fake-button-click.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../js/resources/js-test-pre.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <button id="test" onclick="popup()" style="display:none"></button> 6 <button id="test" onclick="popup()" style="display:none"></button>
7 <div id="console"></div> 7 <div id="console"></div>
8 <script> 8 <script>
9 var win; 9 var win;
10 function popup() { 10 function popup() {
11 win = window.open("about:blank", "blank"); 11 win = window.open("about:blank", "blank");
12 shouldBeUndefined("win"); 12 shouldBeUndefined("win");
13 } 13 }
14 14
15 if (window.testRunner) { 15 if (window.testRunner) {
16 testRunner.dumpAsText(); 16 testRunner.dumpAsText();
17 testRunner.setCanOpenWindows(); 17 testRunner.setCanOpenWindows();
18 testRunner.setPopupBlockingEnabled(true); 18 testRunner.setPopupBlockingEnabled(true);
19 testRunner.setCloseRemainingWindowsWhenComplete(true); 19 testRunner.setCloseRemainingWindowsWhenComplete(true);
20 testRunner.waitUntilDone(); 20 testRunner.waitUntilDone();
21 } 21 }
22 22
23 document.getElementById("test").click(); 23 document.getElementById("test").click();
24 24
25 if (window.testRunner) 25 if (window.testRunner)
26 testRunner.notifyDone(); 26 testRunner.notifyDone();
27 </script> 27 </script>
28 </body> 28 </body>
29 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698