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

Side by Side Diff: LayoutTests/fullscreen/full-screen-popup.html

Issue 26229003: Replace the test for r158993 with a less flaky one (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 <body> 1 <body>
2 <script src="full-screen-test.js"></script> 2 <script src="full-screen-test.js"></script>
3 <span></span> 3 <span></span>
4 <script> 4 <script>
5 // Bail out early if the full screen API is not enabled or is missing: 5 // Bail out early if the full screen API is not enabled or is missing:
6 if (Element.prototype.webkitRequestFullScreen == undefined) { 6 if (Element.prototype.webkitRequestFullScreen == undefined) {
7 logResult(false, "Element.prototype.webkitRequestFullScreen == undefined "); 7 logResult(false, "Element.prototype.webkitRequestFullScreen == undefined ");
8 endTest(); 8 endTest();
9 } else { 9 } else {
10 if (window.testRunner) {
11 testRunner.setCanOpenWindows();
12 testRunner.setPopupBlockingEnabled(true);
13 testRunner.setCloseRemainingWindowsWhenComplete(true);
14 }
10 var span = document.getElementsByTagName('span')[0]; 15 var span = document.getElementsByTagName('span')[0];
11 16
12 var enterLeaveEnter = function() { 17 var fullScreenAndPopup = function() {
13 testExpected("document.webkitIsFullScreen", false);
14 testExpected("document.webkitCurrentFullScreenElement", undefined);
15 span.webkitRequestFullScreen(); 18 span.webkitRequestFullScreen();
19 testExpected("window.open('about:blank')", null);
16 document.webkitCancelFullScreen(); 20 document.webkitCancelFullScreen();
17 span.webkitRequestFullScreen();
18 testExpected("document.webkitIsFullScreen", false);
19 testExpected("document.webkitCurrentFullScreenElement", undefined);
20 setTimeout(endTest, 0); 21 setTimeout(endTest, 0);
21 }; 22 };
22 23
23 runWithKeyDown(enterLeaveEnter); 24 runWithKeyDown(fullScreenAndPopup);
24 } 25 }
25 </script> 26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698