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

Side by Side Diff: LayoutTests/fullscreen/full-screen-zIndex-after.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 document.onwebkitfullscreenchange = function() {
9 if (Element.prototype.webkitRequestFullScreen == undefined) { 9 document.onwebkitfullscreenchange = endTest;
10 logResult(false, 'Element.prototype.webkitRequestFullScreen == undefined'); 10 document.webkitCancelFullScreen();
11 endTest(); 11 };
12 } else { 12 function goFullScreen() {
13 document.onwebkitfullscreenchange = function() { 13 document.getElementById('block1').webkitRequestFullScreen();
14 document.onwebkitfullscreenchange = endTest;
15 document.webkitCancelFullScreen();
16 };
17 function goFullScreen() {
18 document.getElementById('block1').webkitRequestFullScree n();
19 }
20 runWithKeyDown(goFullScreen);
21 } 14 }
15 runWithKeyDown(goFullScreen);
22 } 16 }
23 </script> 17 </script>
24 <script src="full-screen-test.js"></script> 18 <script src="full-screen-test.js"></script>
25 <style> 19 <style>
26 #block1 { 20 #block1 {
27 width: 200px; 21 width: 200px;
28 height: 100px; 22 height: 100px;
29 border: 4px solid darkgreen; 23 border: 4px solid darkgreen;
30 background-color: green; 24 background-color: green;
31 } 25 }
(...skipping 16 matching lines...) Expand all
48 <body onload="init()"> 42 <body onload="init()">
49 <div>This tests that an element with a positive z-index appears behind t he full screen element. 43 <div>This tests that an element with a positive z-index appears behind t he full screen element.
50 After entering full screen mode, the green box should not be obscur ed by the red box. 44 After entering full screen mode, the green box should not be obscur ed by the red box.
51 Click <button onclick="goFullScreen()">go full screen</button> to r un the test.</div> 45 Click <button onclick="goFullScreen()">go full screen</button> to r un the test.</div>
52 <div id="block2"></div> 46 <div id="block2"></div>
53 <div id="block3"> 47 <div id="block3">
54 <div id="block1"></div> 48 <div id="block1"></div>
55 </div> 49 </div>
56 </body> 50 </body>
57 </html> 51 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fullscreen/full-screen-zIndex.html ('k') | LayoutTests/fullscreen/parent-flow-inline-with-block-child.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698