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

Unified Diff: third_party/WebKit/LayoutTests/media/audio_output_devices/audio_output_devices-setsinkid.html

Issue 1416123005: Implement setSinkId() for media elements without src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: third_party/WebKit/LayoutTests/media/audio_output_devices/audio_output_devices-setsinkid.html
diff --git a/third_party/WebKit/LayoutTests/media/audio_output_devices/audio_output_devices-setsinkid.html b/third_party/WebKit/LayoutTests/media/audio_output_devices/audio_output_devices-setsinkid.html
deleted file mode 100644
index 204ff8f7ec920364a0030471f7b6bf36d6e571df..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/media/audio_output_devices/audio_output_devices-setsinkid.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Audio Output Devices</title>
- <script src="../../resources/testharness.js"></script>
- <script src="../../resources/testharnessreport.js"></script>
- </head>
- <body>
- <audio id="testAudio"></audio>
- <script>
- // Tests that the setSinkId() Promise rejects with a NotSupportedError,
- // because the functionality has not been implemented yet.
- promise_test(function() {
- var audio = document.getElementById('testAudio');
- assert_not_equals(audio, null);
-
- assert_idl_attribute(audio, 'setSinkId');
- assert_equals(typeof audio.setSinkId, 'function');
- assert_idl_attribute(audio, 'sinkId');
- assert_equals(audio.sinkId, '');
-
- return audio.setSinkId('').then(function() {
- assert_equals(audio.sinkId, '');
- return audio.setSinkId('xxx');
- }, function(error) {
- assert_unreached('setSinkId() should have succeeded!');
- }). then(function() {
- assert_unreached('setSinkId() should have failed!');
- }, function(error) {
- assert_equals(audio.sinkId, '');
- return Promise.resolve();
- })
- }, 'setSinkId() test');
- </script>
- </body>
-</html>
-

Powered by Google App Engine
This is Rietveld 408576698