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

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

Issue 178003008: Remove the HTMLVideoElement-specific prefixed fullscreen API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm negative test Created 6 years, 10 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>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=61461">bug 61461</a >: 1 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=61461">bug 61461</a >:
2 Handle entering full screen security restrictions</p> 2 Handle entering full screen security restrictions.
3 <p>To test manually, click the video "full screen" button - the page should ente r full screen mode.</p> 3 Note that the original pass condition has been reversed.</p>
4 <p>To test manually, click the video "full screen" button - the page should NOT enter full screen mode.</p>
4 <script src="full-screen-test.js"></script> 5 <script src="full-screen-test.js"></script>
5 <script src="../media/media-file.js"></script> 6 <script src="../media/media-file.js"></script>
6 <script> 7 <script>
7 8
8 function canplaythrough() { 9 function canplaythrough() {
9 var frame = document.getElementById('frame'); 10 var frame = document.getElementById('frame');
10 11
11 runWithKeyDown(function() { 12 runWithKeyDown(function() {
12 var video = frame.contentDocument.getElementsByTagName('video')[0]; 13 var video = frame.contentDocument.getElementsByTagName('video')[0];
13 video.webkitEnterFullScreen(); 14 video.webkitRequestFullscreen();
14 }); 15 });
15 } 16 }
16 17
17 function runTest() { 18 function runTest() {
18 var frame = document.getElementById('frame'); 19 var frame = document.getElementById('frame');
19 20
20 waitForEvent(frame.contentDocument, 'webkitfullscreenchange', function() { 21 waitForEvent(frame.contentDocument, 'webkitfullscreenerror', function() {
21 test("document.getElementById('frame').contentDocument.width==docume nt.width") 22 endTest();
22 endTest();
23 }); 23 });
24 24
25 var video = frame.contentDocument.getElementsByTagName('video')[0]; 25 var video = frame.contentDocument.getElementsByTagName('video')[0];
26 var mediaFile = findMediaFile("video", "../../media/content/test"); 26 var mediaFile = findMediaFile("video", "../../media/content/test");
27 video.src = mediaFile; 27 video.src = mediaFile;
28 video.addEventListener('canplaythrough', canplaythrough); 28 video.addEventListener('canplaythrough', canplaythrough);
29 } 29 }
30 </script> 30 </script>
31 <iframe id="frame" src="resources/legacy.html" onload="runTest()" width="336" he ight="256"> 31 <iframe id="frame" src="resources/legacy.html" onload="runTest()" width="336" he ight="256">
32 </iframe> 32 </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