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

Unified Diff: LayoutTests/media/video-overlay-cast-dark-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-overlay-cast-dark-rendering.html
diff --git a/LayoutTests/media/video-overlay-cast-dark-rendering.html b/LayoutTests/media/video-overlay-cast-dark-rendering.html
new file mode 100644
index 0000000000000000000000000000000000000000..108caf5cf9a40f42502b602ffd2d92c3b19bcf93
--- /dev/null
+++ b/LayoutTests/media/video-overlay-cast-dark-rendering.html
@@ -0,0 +1,36 @@
+<script src="media-file.js"></script>
+<script src="video-paint-test.js"></script>
+<body>
+<p>Test overlay cast button rendering on dark background. </p>
+<div>
+ <video></video>
+</div>
+<div>
+ <video style="width: 320px;"></video>
+</div>
+<div>
+ <video 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>

Powered by Google App Engine
This is Rietveld 408576698