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

Side by Side Diff: third_party/WebKit/LayoutTests/media/controls/buttons-after-reset.html

Issue 2704013002: Media Controls: cache the minimum width in order to reduce incorrect width usage. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/controls/buttons-after-reset-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <title>Test that resetting the controls after load is a no-op.</title>
4 <script src="../media-file.js"></script>
5 <video controls width=400>
6 <track kind=subtitles src=fake-en-sub.vtt srclang=en label=English>
7 <track kind=subtitles src=fake-fr-sub.vtt srclang=fr label=French>
8 </video>
9 <script>
10 if (window.testRunner)
11 testRunner.waitUntilDone();
12
13 var video = document.querySelector('video');
14 video.src = findMediaFile('video', '../content/test');
15 video.addEventListener('loadedmetadata', () => {
Zhiqiang Zhang (Slow) 2017/02/18 15:04:37 Can you explain why hide and show the controls and
mlamouri (slow - plz ping) 2017/02/19 10:33:57 Without the fix, when we do hide/show, we end up w
16 video.controls = false;
17 testRunner.layoutAndPaintAsyncThen(() => {
18 video.controls = true;
19
20 testRunner.layoutAndPaintAsyncThen(() => {
21 testRunner.notifyDone();
22 });
23 });
24 });
25 </script>
26 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/controls/buttons-after-reset-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698