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: third_party/WebKit/LayoutTests/media/controls-overlay-cast-button.html

Issue 2846713002: [Media] Added feature flag for new remote playback pipeline (Closed)
Patch Set: Fixed failing layout tests Created 3 years, 8 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: third_party/WebKit/LayoutTests/media/controls-overlay-cast-button.html
diff --git a/third_party/WebKit/LayoutTests/media/controls-overlay-cast-button.html b/third_party/WebKit/LayoutTests/media/controls-overlay-cast-button.html
deleted file mode 100644
index 6847192e254e83b7eb059bae1ed25f571e602a14..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/media/controls-overlay-cast-button.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<title>media controls cast button</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="media-file.js"></script>
-<script src="media-controls.js"></script>
-<video></video>
-<script>
-async_test(function(t) {
- var video = document.querySelector("video");
- video.src = findMediaFile("video", "content/test");
-
- video.onloadedmetadata = t.step_func_done(function() {
- // Should not have a cast button by default
- var button = overlayCastButton(video);
- assert_equals(button.style.display, "none", "button should not be visible with no cast devices");
-
- // Pretend we have a cast device
- internals.mediaPlayerRemoteRouteAvailabilityChanged(video, true);
- // Now should have cast button
- assert_false(("display" in button.style) && (button.style.display == "none"), "button should exist");
- var rect = button.getBoundingClientRect();
- assert_not_equals(rect.width, 0, "button should exist");
- assert_not_equals(rect.height, 0, "button should exist");
-
- // Check position, should be in the top left corner of the video
- var videoRect = video.getBoundingClientRect();
- assert_greater_than_equal(rect.top, videoRect.top, "button should be at top left of video");
- assert_greater_than_equal(rect.left, videoRect.left, "button should be at top left of video");
- assert_less_than_equal(rect.bottom, videoRect.top + videoRect.height / 2, "button should be at top left of video");
- assert_less_than_equal(rect.right, videoRect.left + videoRect.width / 2, "button should be at top left of video");
-
- // Remove cast device - cast button should go away
- internals.mediaPlayerRemoteRouteAvailabilityChanged(video, false);
- assert_equals(button.style.display, "none", "button should not be visible after cast device goes away");
- });
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698