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

Unified Diff: third_party/WebKit/LayoutTests/media/media-controls-play-button-visible.html

Issue 2243473002: Adding overflow menu to media player (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 3 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/media-controls-play-button-visible.html
diff --git a/third_party/WebKit/LayoutTests/media/media-controls-play-button-visible.html b/third_party/WebKit/LayoutTests/media/media-controls-play-button-visible.html
deleted file mode 100644
index 5d8fbc14bf79c9c483604ceea138df6e82ce5ffd..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/media/media-controls-play-button-visible.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>video controls play button always visible</title>
- <script src="../resources/testharness.js"></script>
- <script src="../resources/testharnessreport.js"></script>
- <script src="media-controls.js"></script>
- <style>
- audio {
- width: 24px;
- }
- </style>
- </head>
- <body onload="async_test(testPlayButtonVisible)">
- <video id="video" width="24px" controls></video>
- <audio id="audio" controls></video>
- <script>
- function checkOneElement(test, id) {
- var element = document.getElementById(id);
-
- // Check that the play button is shown.
- var playButton = mediaControlsButton(element, "play-button");
- assert_true(getComputedStyle(playButton).display != "none",
- "play button should not be hidden for " + id);
-
- // Also check for something that should be hidden, just to be sure
- // that things are being recomputed properly before the test runs.
- // This only works with the new media playback UI, since the old one
- // doesn't hide anything based on width.
- if (window.internals.runtimeFlags.newMediaPlaybackUiEnabled) {
- var timeline = mediaControlsButton(element, "timeline");
- assert_true(getComputedStyle(timeline).display == "none",
- "timeline should be hidden for " + id);
- }
- }
-
- function testPlayButtonVisible(test) {
- checkOneElement(test, "video");
- checkOneElement(test, "audio");
- test.done();
- }
- </script>
- </video>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698