Index: LayoutTests/media/video-controls-with-cast-rendering.html |
diff --git a/LayoutTests/media/video-controls-with-cast-rendering.html b/LayoutTests/media/video-controls-with-cast-rendering.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..759940917e448018b92e6ec0d9ab96615a5f90b1 |
--- /dev/null |
+++ b/LayoutTests/media/video-controls-with-cast-rendering.html |
@@ -0,0 +1,36 @@ |
+<script src="media-file.js"></script> |
Peter Beverloo
2014/10/20 19:08:48
+<!DOCTYPE html>
+<html>
aberent
2014/10/20 20:13:50
Done.
|
+<script src="video-paint-test.js"></script> |
Peter Beverloo
2014/10/20 19:08:48
Please move the scripts inside the <body>, or plac
aberent
2014/10/20 20:13:50
Done.
|
+<body> |
+<p>Test controls rendering with cast button. </p> |
+<div> |
+ <video controls></video> |
+</div> |
+<div> |
+ <video controls style="width: 320px;"></video> |
+</div> |
+<div> |
+ <video controls style="position: absolute; width: 320px;"></video> |
+</div> |
+<script> |
+if (window.internals) |
+ window.internals.settings.setMockScrollbarsEnabled(true); |
+ |
+var videos = document.getElementsByTagName('video'); |
+waitForMultipleEvents("canplaythrough", videos.length, function() { |
+ for (var i = 0; i < videos.length; ++i) { |
+ videos[i].play(); |
+ videos[i].addEventListener("playing", function(event) { |
+ event.target.pause(); |
+ event.target.currentTime = 0; |
+ if(window.internals) |
+ internals.mediaPlayerRemoteRouteAvailabilityChanged(event.target, true); |
+ }); |
+ } |
+ waitForMultipleEvents("seeked", videos.length, function() { |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }); |
+}); |
+setSrcByTagName('video', findMediaFile('video', 'content/test')); |
+</script> |
+</body> |
Peter Beverloo
2014/10/20 19:08:48
+</html>
aberent
2014/10/20 20:13:50
Done.
|