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

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

Issue 462253003: Remove early returns in fullscreen tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 var runPixelTests = true; 5 var runPixelTests = true;
6 6
7 function init() { 7 function init() {
8 // Bail out early if the full screen API is not enabled or is mi ssing: 8 waitForEventAndEnd(document, 'webkitfullscreenchange');
9 if (Element.prototype.webkitRequestFullScreen == undefined) { 9 runWithKeyDown(goFullScreen);
10 logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");
11 endTest();
12 } else {
13 waitForEventAndEnd(document, 'webkitfullscreenchange');
14 runWithKeyDown(goFullScreen);
15 }
16 } 10 }
17 11
18 function goFullScreen() { 12 function goFullScreen() {
19 document.getElementById('block1').webkitRequestFullScreen(); 13 document.getElementById('block1').webkitRequestFullScreen();
20 } 14 }
21 </script> 15 </script>
22 <script src="full-screen-test.js"></script> 16 <script src="full-screen-test.js"></script>
23 <style> 17 <style>
24 #block1 { 18 #block1 {
25 width: 200px; 19 width: 200px;
(...skipping 15 matching lines...) Expand all
41 } 35 }
42 </style> 36 </style>
43 </head> 37 </head>
44 <body onload="init()"> 38 <body onload="init()">
45 <div>This tests that an element with a positive z-index appears behind t he full screen element. 39 <div>This tests that an element with a positive z-index appears behind t he full screen element.
46 After entering full screen mode, only a green box should be visible . 40 After entering full screen mode, only a green box should be visible .
47 Click <button onclick="goFullScreen()">go full screen</button> to r un the test.</div> 41 Click <button onclick="goFullScreen()">go full screen</button> to r un the test.</div>
48 <div id="block2"></div> 42 <div id="block2"></div>
49 <div id="block1"></div> 43 <div id="block1"></div>
50 </body> 44 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fullscreen/full-screen-with-flex-item.html ('k') | LayoutTests/fullscreen/full-screen-zIndex-after.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698