OLD | NEW |
---|---|
(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> | |
OLD | NEW |