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

Unified Diff: third_party/WebKit/LayoutTests/media/media-controls-fit-properly-while-zoomed.html

Issue 2237553002: [M53] Adjust MediaControls for effective zoom when dropping controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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-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>
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698