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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fullscreen/full-screen-iframe-allowed-video-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fullscreen/full-screen-iframe-allowed-video.html
diff --git a/LayoutTests/fullscreen/full-screen-iframe-allowed-video.html b/LayoutTests/fullscreen/full-screen-iframe-allowed-video.html
new file mode 100644
index 0000000000000000000000000000000000000000..5e55419e8d25769879a0cff7a829cc5d9d7898d0
--- /dev/null
+++ b/LayoutTests/fullscreen/full-screen-iframe-allowed-video.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<script>
+ if (window.internals)
+ runPixelTests = internals.runtimeFlags.overlayFullscreenVideoEnabled;
+</script>
+<script src="full-screen-test.js"></script>
+<script>
+ var initialized = false;
+ window.onmessage = function(messageEvent) {
+ if (!initialized) {
+ // video has been loaded and messaged us.
+ // Send click to center of iframe.
+ iframe = document.getElementById("frame");
+ x = iframe.offsetLeft + iframe.offsetWidth / 2;
+ y = iframe.offsetTop + iframe.offsetHeight / 2;
+ if (window.eventSender) {
+ eventSender.mouseMoveTo(x, y);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ }
+ initialized = true;
+ } else {
+ consoleWrite(messageEvent.data);
+ endTest();
+ }
+ }
+</script>
+Video inside an iframe is allowed to enter fullscreen</p>
+<iframe id="frame" src="resources/video.html" width="320" height="240" allowfullscreen></iframe>
+
« 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