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

Side by Side Diff: LayoutTests/fullscreen/full-screen-stacking-context.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('video').webkitRequestFullScreen(); 13 document.getElementById('video').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 #one { 18 #one {
25 width: 100px; 19 width: 100px;
(...skipping 28 matching lines...) Expand all
54 <body onload="init()"> 48 <body onload="init()">
55 <div>This tests that a full screen element in a lower stacking context b locks a sibling in a higher stacking context. 49 <div>This tests that a full screen element in a lower stacking context b locks a sibling in a higher stacking context.
56 After entering full screen mode, only a black box should be visible . 50 After entering full screen mode, only a black box should be visible .
57 Click <button onclick="goFullScreen()">go full screen</button> to r un the test.</div> 51 Click <button onclick="goFullScreen()">go full screen</button> to r un the test.</div>
58 <div id="one"></div> 52 <div id="one"></div>
59 <div id="zero"> 53 <div id="zero">
60 <video id="video"></video> 54 <video id="video"></video>
61 </div> 55 </div>
62 </body> 56 </body>
63 </html> 57 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fullscreen/full-screen-restrictions.html ('k') | LayoutTests/fullscreen/full-screen-twice.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698