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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>media controls adjust for zoom when filling the bar</title>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 <script src="media-controls.js"></script>
8 <script src=media-file.js></script>
9 <style>
10 body { zoom: 500%; }
11 </style>
12 </head>
13 <body onload="async_test(testTimelineVisible)">
14 <div id="log"></div>
15 <video id="video" width="300px" controls></video>
16 <script>
17 var element = document.getElementById("video");
18 element.src = findMediaFile("video", "content/counting");
19
20 function testTimelineVisible(test) {
21 // Check that the timeline is shown. If zoom is not accounted for,
22 // then it will be considered 500% bigger, and will be dropped.
23 var timeline = mediaControlsButton(element, "timeline");
24 assert_true(getComputedStyle(timeline).display != "none",
25 "timeline should not be hidden while zoomed");
26 test.done();
27 }
28 </script>
29 </video>
30 </body>
31 </html>
OLDNEW
« 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