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

Unified Diff: LayoutTests/media/video-controls-with-cast-rendering.html

Issue 658353002: Remove background color from overlay cast button (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix Peter's nit on CSS, and add rendering layout tests. Created 6 years, 2 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
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.

Powered by Google App Engine
This is Rietveld 408576698