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

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

Issue 2898503002: Reenable feature policy control over fullscreen (Closed)
Patch Set: Fixing last test nits Created 3 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
OLDNEW
(Empty)
1 <p>HTMLVideoElement.webkitEnterFullScreen() in an iframe requires the allowfulls creen attribute</p>
2 <script src="full-screen-test.js"></script>
3 <script src="../media/media-file.js"></script>
4 <script>
5 var frame, video;
6
7 function canplaythrough() {
8 testExpected("video.webkitDisplayingFullscreen", false);
9 runWithKeyDown(function() {
10 video.webkitEnterFullScreen();
11 });
12 waitForEventAndEnd(frame.contentDocument, "webkitfullscreenerror");
13 }
14
15 function runTest() {
16 frame = document.getElementById("frame");
17 video = frame.contentDocument.querySelector("video");
18 video.src = findMediaFile("video", "../../media/content/test");
19 video.addEventListener("canplaythrough", canplaythrough);
20 }
21 </script>
22 <iframe id="frame" src="resources/legacy.html" onload="runTest()" width="336" he ight="256">
23 </iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698