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

Side by Side Diff: LayoutTests/fullscreen/video-specified-size.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
« no previous file with comments | « LayoutTests/fullscreen/parent-flow-inline-with-block-child.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <body> 1 <body>
2 <video id="video" width="300" controls></video> 2 <video id="video" width="300" controls></video>
3 <script> 3 <script>
4 if (window.internals) 4 if (window.internals)
5 runPixelTests = internals.runtimeFlags.overlayFullscreenVideoEnabled ; 5 runPixelTests = internals.runtimeFlags.overlayFullscreenVideoEnabled ;
6 </script> 6 </script>
7 <script src="full-screen-test.js"></script> 7 <script src="full-screen-test.js"></script>
8 <script src=../media/media-file.js></script> 8 <script src=../media/media-file.js></script>
9 <script> 9 <script>
10 setSrcById("video", findMediaFile("video", "../media/content/test")); 10 setSrcById("video", findMediaFile("video", "../media/content/test"));
11 var video = document.getElementById('video'); 11 var video = document.getElementById('video');
12 // Bail out early if the full screen API is not enabled or is missing: 12 waitForEventTestAndEnd(document, 'webkitfullscreenchange', "video.client Width==document.body.clientWidth");
13 if (Element.prototype.webkitRequestFullScreen == undefined) { 13 runWithKeyDown(function(){video.webkitRequestFullScreen()});
14 logResult(false, "Element.prototype.webkitRequestFullScreen == undef ined");
15 endTest();
16 } else {
17 waitForEventTestAndEnd(document, 'webkitfullscreenchange', "video.cl ientWidth==document.body.clientWidth");
18 runWithKeyDown(function(){video.webkitRequestFullScreen()});
19 }
20 </script> 14 </script>
21 </body> 15 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fullscreen/parent-flow-inline-with-block-child.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698