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

Unified Diff: third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-hide-on-click-panel.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-hide-on-click-panel.html
diff --git a/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-hide-on-click-panel.html b/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-hide-on-click-panel.html
deleted file mode 100644
index 241962a1a4133f56b36ff7f42e95a963261e6421..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-hide-on-click-panel.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<title>Ensure overflow menu buttons are visible when expected.</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");
- video.setAttribute("width", "200");
- // 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 playButton = mediaControlsButton(video, "play-button");
- var overflowList = getOverflowList(video);
- var overflowMenu = getOverflowMenuButton(video);
-
- // Clicking on the overflow menu button should make the overflow list visible
- var coords = elementCoordinates(overflowMenu);
- clickAtCoordinates(coords[0], coords[1]);
- assert_not_equals(getComputedStyle(overflowList).display, "none");
-
- // Click on an overflow menu item should close overflow list.
- var coords = elementCoordinates(playButton);
- clickAtCoordinates(coords[0], coords[1]);
- assert_equals(getComputedStyle(overflowList).display, "none");
- });
-});
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698