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

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

Issue 187193002: Fix an issue that subtitle is not shown for native fullscreen video that is inside an iframe (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase virtual/android/fullscreen test expectations Created 6 years, 9 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 <!DOCTYPE html>
2 <script>
3 if (window.internals)
4 runPixelTests = internals.runtimeFlags.overlayFullscreenVideoEnabled;
5 </script>
6 <script src="full-screen-test.js"></script>
7 <script>
8 var initialized = false;
9 window.onmessage = function(messageEvent) {
10 if (!initialized) {
11 // video has been loaded and messaged us.
12 // Send click to center of iframe.
13 iframe = document.getElementById("frame");
14 x = iframe.offsetLeft + iframe.offsetWidth / 2;
15 y = iframe.offsetTop + iframe.offsetHeight / 2;
16 if (window.eventSender) {
17 eventSender.mouseMoveTo(x, y);
18 eventSender.mouseDown();
19 eventSender.mouseUp();
20 }
21 initialized = true;
22 } else {
23 consoleWrite(messageEvent.data);
24 endTest();
25 }
26 }
27 </script>
28 Video inside an iframe is allowed to enter fullscreen</p>
29 <iframe id="frame" src="resources/video.html" width="320" height="240" allowfull screen></iframe>
30
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fullscreen/full-screen-iframe-allowed-video-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698