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

Side by Side Diff: LayoutTests/media/video-controls-fullscreen-iframe.html

Issue 1159593006: Revert of Remove the allowfullscreen exemption for the video-specific fullscreen API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 6 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>video controls fullscreen button in iframe without allowfullscree n attribute</title>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 <script src="media-file.js"></script>
8 <script src="media-controls.js"></script>
9 </head>
10 <body>
11 <div id="log"></div>
12 <iframe srcdoc="<video controls>" width="400" height="300"></iframe>
13 <script>
14 async_test(function()
15 {
16 var iframe = document.querySelector("iframe");
17 iframe.onload = this.step_func(function()
18 {
19 var video = iframe.contentDocument.querySelector("video");
20 video.src = findMediaFile("video", "content/test");
21 video.onloadeddata = this.step_func(function()
22 {
23 // click the fullscreen button
24 var coords = mediaControlsButtonCoordinates(video, "full screen-button");
25 eventSender.mouseMoveTo(iframe.offsetLeft + coords[0], i frame.offsetTop + coords[1]);
26 eventSender.mouseDown();
27 eventSender.mouseUp();
28 // wait for the fullscreenchange event
29 video.onwebkitfullscreenchange = this.step_func_done();
30 });
31 });
32 });
33 </script>
34 </body>
35 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fullscreen/full-screen-iframe-legacy-expected.txt ('k') | Source/core/dom/Fullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698