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

Unified Diff: third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-appears-when-expected.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/video-controls-overflow-menu-appears-when-expected.html
diff --git a/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-appears-when-expected.html b/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-appears-when-expected.html
deleted file mode 100644
index c7cc650603bf559594b0eb34b0a10a332123ff34..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-appears-when-expected.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<title>Overflow menu appears at the right time.</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="media-controls.js"></script>
-<script src="media-file.js"></script>
-<script src="overflow-menu.js"></script>
-
-<!--Padding ensures the overflow menu is visible for the tests. -->
-<body style="padding-top: 200px; padding-left: 100px">
-<video controls></video>
-<script>
-async_test(function(t) {
- // Set up video
- var video = document.querySelector("video");
- video.src = findMediaFile("video", "content/test");
- // At this width, the mute and cast button don't fit. Since we have
- // two elements that don't fit, the overflow menu should be visible.
- video.setAttribute("width", "240");
- // Add captions
- var track = video.addTextTrack("captions");
- // Pretend we have a cast device
- internals.mediaPlayerRemoteRouteAvailabilityChanged(video, true);
-
- video.onloadeddata = t.step_func_done(function() {
- var overflowMenu = getOverflowMenuButton(video);
- var overflowList = getOverflowList(video);
- var children = overflowList.children;
-
- // Overflow menu button should be visible
- assert_not_equals(getComputedStyle(overflowMenu).display, "none");
- });
-});
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698