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: LayoutTests/media/audio_output_devices/audio_output_devices-setsinkid.html

Issue 1182243005: Add sinkId/setSinkId() extension to HTMLMediaElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update expected value for public interface/properties tests Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/media/audio_output_devices/audio_output_devices-setsinkid.html
diff --git a/LayoutTests/media/audio_output_devices/audio_output_devices-setsinkid.html b/LayoutTests/media/audio_output_devices/audio_output_devices-setsinkid.html
new file mode 100644
index 0000000000000000000000000000000000000000..727b7e42176c7497630d496de089140f2d665601
--- /dev/null
+++ b/LayoutTests/media/audio_output_devices/audio_output_devices-setsinkid.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Audio Output Devices</title>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ </head>
+ <body>
+ <video id="testVideo"></video>
+ <script>
+ // Tests that the setSinkId() Promise rejects with a NotSupportedError,
+ // because the functionality has not been implemented yet.
+ promise_test(function() {
+ var video = document.getElementById('testVideo');
+ assert_not_equals(video, null);
+
+ assert_idl_attribute(video, 'setSinkId');
+ assert_equals(typeof video.setSinkId, 'function');
+ assert_idl_attribute(video, 'sinkId');
+ assert_equals(video.sinkId, '');
+
+ return video.setSinkId('').then(function() {
+ assert_unreached('setSinkId() should not be implemented yet!');
+ }, function(error) {
+ assert_equals(error.name, 'NotSupportedError');
+ return Promise.resolve();
+ });
+ }, 'setSinkId() test');
+ </script>
+ </body>
+</html>
+

Powered by Google App Engine
This is Rietveld 408576698