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

Unified Diff: third_party/WebKit/LayoutTests/media/controls/volumechange-muted-attribute.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/media/controls/volumechange-muted-attribute.html
diff --git a/third_party/WebKit/LayoutTests/media/controls/volumechange-muted-attribute.html b/third_party/WebKit/LayoutTests/media/controls/volumechange-muted-attribute.html
new file mode 100644
index 0000000000000000000000000000000000000000..913cfb59711ba8f06aadf432aff994638289cea1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/controls/volumechange-muted-attribute.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<title>This tests that controls are properly updated when muted content attribute is changed.</title>
+<script src="../media-file.js"></script>
+<audio controls></audio>
+<video controls></video>
+<script>
+ var audio = document.querySelector('audio');
+ audio.setAttribute('muted', true);
foolip 2016/11/14 16:07:37 Add a TODO that this is actually wrong per HTML, h
mlamouri (slow - plz ping) 2016/11/14 23:46:29 Done.
+ audio.src = findMediaFile('audio', '../content/test');
+
+ var video = document.querySelector('video');
+ video.setAttribute('muted', true);
+ video.src = findMediaFile('video', '../content/test');
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698