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

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

Issue 1240573005: Make video.webkitSupportsFullscreen an alias of document.fullscreenEnabled (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: move comments to assert descriptions Created 5 years, 5 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 | « no previous file | LayoutTests/fullscreen/full-screen-iframe-legacy-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <p>HTMLVideoElement.webkitEnterFullScreen() in an iframe requires the allowfulls creen attribute</p> 1 <p>HTMLVideoElement.webkitEnterFullScreen() in an iframe requires the allowfulls creen attribute</p>
2 <script src="full-screen-test.js"></script> 2 <script src="full-screen-test.js"></script>
3 <script src="../media/media-file.js"></script> 3 <script src="../media/media-file.js"></script>
4 <script> 4 <script>
5 var frame, video;
5 6
6 function canplaythrough() { 7 function canplaythrough() {
7 var frame = document.getElementById('frame'); 8 testExpected("video.webkitDisplayingFullscreen", false);
8
9 runWithKeyDown(function() { 9 runWithKeyDown(function() {
10 var video = frame.contentDocument.getElementsByTagName('video')[0];
11 video.webkitEnterFullScreen(); 10 video.webkitEnterFullScreen();
12 }); 11 });
12 waitForEventAndEnd(frame.contentDocument, "webkitfullscreenerror");
13 } 13 }
14 14
15 function runTest() { 15 function runTest() {
16 var frame = document.getElementById('frame'); 16 frame = document.getElementById("frame");
17 17 video = frame.contentDocument.querySelector("video");
18 waitForEventAndEnd(frame.contentDocument, 'webkitfullscreenerror'); 18 video.src = findMediaFile("video", "../../media/content/test");
19 19 video.addEventListener("canplaythrough", canplaythrough);
20 var video = frame.contentDocument.getElementsByTagName('video')[0];
21 var mediaFile = findMediaFile("video", "../../media/content/test");
22 video.src = mediaFile;
23 video.addEventListener('canplaythrough', canplaythrough);
24 } 20 }
25 </script> 21 </script>
26 <iframe id="frame" src="resources/legacy.html" onload="runTest()" width="336" he ight="256"> 22 <iframe id="frame" src="resources/legacy.html" onload="runTest()" width="336" he ight="256">
27 </iframe> 23 </iframe>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-iframe-legacy-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698