| Index: third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-last-button-visible.html
|
| diff --git a/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-last-button-visible.html b/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-last-button-visible.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4446dc1c1be76ebe633b55b74869ed74f4b15fa8
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-last-button-visible.html
|
| @@ -0,0 +1,33 @@
|
| +<!DOCTYPE html>
|
| +<title>Overflow menu should be the last media controls button visible.</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 style="width: 24px"></video>
|
| +<audio controls style="width: 24px"></audio>
|
| +<script>
|
| +async_test(function(t) {
|
| + // Set up video
|
| + var video = document.querySelector("video");
|
| + video.src = findMediaFile("video", "content/test");
|
| +
|
| + var audio = document.querySelector("audio");
|
| + audio.src = findMediaFile("audio", "content/test");
|
| +
|
| + video.onloadeddata = t.step_func_done(function() {
|
| + var overflowVideo = getOverflowMenuButton(video);
|
| + var overflowAudio = getOverflowMenuButton(audio);
|
| +
|
| + // Overflow menu button should be visible
|
| + assert_not_equals(getComputedStyle(overflowVideo).display, "none");
|
| + assert_not_equals(getComputedStyle(overflowAudio).display, "none");
|
| + });
|
| +});
|
| +</script>
|
| +</body>
|
| +
|
|
|