| Index: third_party/WebKit/LayoutTests/media/media-controls-fit-properly-while-zoomed.html
|
| diff --git a/third_party/WebKit/LayoutTests/media/media-controls-fit-properly-while-zoomed.html b/third_party/WebKit/LayoutTests/media/media-controls-fit-properly-while-zoomed.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cae3e9d3c40703ed068ea8055e81da165284afa5
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/media/media-controls-fit-properly-while-zoomed.html
|
| @@ -0,0 +1,31 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| + <head>
|
| + <title>media controls adjust for zoom when filling the bar</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>
|
| + <style>
|
| + body { zoom: 500%; }
|
| + </style>
|
| + </head>
|
| + <body onload="async_test(testTimelineVisible)">
|
| + <div id="log"></div>
|
| + <video id="video" width="300px" controls></video>
|
| + <script>
|
| + var element = document.getElementById("video");
|
| + element.src = findMediaFile("video", "content/counting");
|
| +
|
| + function testTimelineVisible(test) {
|
| + // Check that the timeline is shown. If zoom is not accounted for,
|
| + // then it will be considered 500% bigger, and will be dropped.
|
| + var timeline = mediaControlsButton(element, "timeline");
|
| + assert_true(getComputedStyle(timeline).display != "none",
|
| + "timeline should not be hidden while zoomed");
|
| + test.done();
|
| + }
|
| + </script>
|
| + </video>
|
| + </body>
|
| +</html>
|
|
|