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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-last-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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Overflow menu should be the last media controls button visible.</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script src="media-controls.js"></script>
6 <script src="media-file.js"></script>
7 <script src="overflow-menu.js"></script>
8
9 <!--Padding ensures the overflow menu is visible for the tests. -->
10 <body style="padding-top: 200px; padding-left: 100px">
11 <video controls style="width: 24px"></video>
12 <audio controls style="width: 24px"></audio>
13 <script>
14 async_test(function(t) {
15 // Set up video
16 var video = document.querySelector("video");
17 video.src = findMediaFile("video", "content/test");
18
19 var audio = document.querySelector("audio");
20 audio.src = findMediaFile("audio", "content/test");
21
22 video.onloadeddata = t.step_func_done(function() {
23 var overflowVideo = getOverflowMenuButton(video);
24 var overflowAudio = getOverflowMenuButton(audio);
25
26 // Overflow menu button should be visible
27 assert_not_equals(getComputedStyle(overflowVideo).display, "none");
28 assert_not_equals(getComputedStyle(overflowAudio).display, "none");
29 });
30 });
31 </script>
32 </body>
33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698