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

Side by Side Diff: third_party/WebKit/LayoutTests/media/controls/volumechange-stopimmediatepropagation.html

Issue 2477203002: Media Controls: delegate 'volumechange' and 'focusin' handling to an EventListener. (Closed)
Patch Set: moar tests Created 4 years, 1 month 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 <title>This tests that controls are properly updated when muted content attribut e is changed.</title>
foolip 2016/11/14 16:07:37 Copy-pasted title? Should say something about stop
mlamouri (slow - plz ping) 2016/11/14 23:46:29 done.
4 <script src="../media-file.js"></script>
5 <div>
6 <audio></audio>
7 </div>
8 <div>
9 <video></video>
10 </div>
11 <div id='a'>
12 </div>
13 <div id='v'>
14 </div>
15 <script>
16 // Elements created from script.
17 var audio = document.createElement('audio');
18 audio.onvolumechange = e => { e.stopImmediatePropagation() };
19 document.querySelector('#a').appendChild(audio);
20 audio.src = findMediaFile('audio', '../content/test');
21 audio.controls = true;
22 audio.onloadedmetadata = () => { audio.muted = true; }
23
24 var video = document.createElement('video');
25 video.onvolumechange = e => { e.stopImmediatePropagation() };
26 document.querySelector('#v').appendChild(video);
27 video.src = findMediaFile('video', '../content/test');
28 video.controls = true;
29 video.onloadedmetadata = () => { video.muted = true; }
30
31 // Elements created during parsing.
32 var audio = document.querySelector('audio');
33 audio.onvolumechange = e => { e.stopImmediatePropagation() };
34 audio.src = findMediaFile('audio', '../content/test');
35 audio.controls = true;
36 audio.muted = true;
37
38 var video = document.querySelector('video');
39 video.onvolumechange = e => { e.stopImmediatePropagation() };
40 video.src = findMediaFile('video', '../content/test');
41 video.controls = true;
42 video.muted = true;
43 </script>
44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698