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

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: add comment 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/controls/volumechange-muted-attribute-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e86ac1ceb8bf830969800ee12a3ba3224c9857d6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/controls/volumechange-muted-attribute.html
@@ -0,0 +1,18 @@
+<!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');
+ // TODO(mlamouri): per spec, this should do nothing but Blink will mute the
+ // media in this case, see https://crbug.com/350303
+ audio.setAttribute('muted', true);
+ audio.src = findMediaFile('audio', '../content/test');
+
+ var video = document.querySelector('video');
+ video.setAttribute('muted', true);
+ video.src = findMediaFile('video', '../content/test');
+</script>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/controls/volumechange-muted-attribute-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698