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> |