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

Unified Diff: LayoutTests/media/video-controls-attribute-fullscreen.html

Issue 351213007: Ensure that the controls attribute is correctly reflected in JS. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: REbase Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/media/video-controls-attribute-fullscreen-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-controls-attribute-fullscreen.html
diff --git a/LayoutTests/media/video-controls-attribute-fullscreen.html b/LayoutTests/media/video-controls-attribute-fullscreen.html
new file mode 100644
index 0000000000000000000000000000000000000000..c564ef3cdd5e66fd34389fabc509f5353c280b7b
--- /dev/null
+++ b/LayoutTests/media/video-controls-attribute-fullscreen.html
@@ -0,0 +1,38 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Test that the controls attribute is not affected by fullscreen</title>
+ <script src="media-file.js"></script>
+ <script src="video-test.js"></script>
+ <script>
+ function start()
+ {
+ findMediaElement();
+ video.src = findMediaFile("video", "content/test");
+ waitForEvent("loadeddata", loadeddata);
+ }
+
+ function loadeddata()
+ {
+ testExpected("video.controls", false);
+ waitForEventOnce("webkitfullscreenchange", fullscreenchange);
+ document.addEventListener("click", function()
+ {
+ run("video.webkitRequestFullscreen()");
+ });
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ }
+
+ function fullscreenchange()
+ {
+ testExpected("video.controls", false);
+ endTest();
+ }
+ </script>
+ </head>
+ <body onload="start()">
+ <p>Test that the controls attribute is not affected by fullscreen</p>
+ <video></video>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/media/video-controls-attribute-fullscreen-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698