Index: third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer-promise.html |
diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer-promise.html b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer-promise.html |
deleted file mode 100644 |
index a4ac6d18ab96498a50cf1471c4a4dde5ada0f1b0..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer-promise.html |
+++ /dev/null |
@@ -1,80 +0,0 @@ |
-<!DOCTYPE html> |
-<html> |
- <head> |
- <title>RTCPeerConnection.createOffer</title> |
- <script src="../../resources/testharness.js"></script> |
- <script src="../../resources/testharnessreport.js"></script> |
- </head> |
- <body> |
- <script> |
- // Note: createOffer() calls in the test runner are successful if the |
- // voiceActivityDetection and iceRestart options are passed with a value |
- // of true and offerToReceiveAudio and offerToReceiveVideo are passed with |
- // a positive value. In all other cases, createOffer() fails in the test |
- // runner. |
- |
- defaultError = new DOMException('TEST_ERROR', 'OperationError') |
- pc = new webkitRTCPeerConnection(null); |
- |
- // Test that creating an offer with voiceActivityDetection, iceRestart, |
- // offerToReceiveAudio and offerToReceiveVideo returns an accepted promise. |
- promise_test(function() { |
- return pc.createOffer({voiceActivityDetection:true, iceRestart:true, offerToReceiveAudio:1, offerToReceiveVideo:1}) |
- }, 'createOffer({voiceActivityDetection:true, iceRestart:true})'); |
- |
- // Test that not explicitly setting voiceActivityDetection results in an |
- // accepted promise, since the default value for voiceActivityDetection |
- // is true. |
- promise_test(function() { |
- return pc.createOffer({iceRestart:true, offerToReceiveAudio:1, offerToReceiveVideo:1}) |
- }, 'createOffer({iceRestart:true})'); |
- |
- // Test that other combinations return a rejected promise. |
- promise_test(function() { |
- return promise_rejects(this, defaultError, |
- pc.createOffer({voiceActivityDetection:true, iceRestart:true})); |
- }, 'createOffer({voiceActivityDetection:false, iceRestart:false})' ); |
- |
- promise_test(function() { |
- return promise_rejects(this, defaultError, |
- pc.createOffer({voiceActivityDetection:true, iceRestart:true, offerToReceiveAudio:0, offerToReceiveVideo: 0})); |
- }, 'createOffer({voiceActivityDetection:false, iceRestart:false})' ); |
- |
- promise_test(function() { |
- return promise_rejects(this, defaultError, |
- pc.createOffer({voiceActivityDetection:false, iceRestart:false})); |
- }, 'createOffer({voiceActivityDetection:false, iceRestart:false})' ); |
- |
- promise_test(function() { |
- return promise_rejects(this, defaultError, |
- pc.createOffer({voiceActivityDetection:false, iceRestart:true})); |
- }, 'createOffer({voiceActivityDetection:false, iceRestart:true})' ); |
- |
- promise_test(function() { |
- return promise_rejects(this, defaultError, |
- pc.createOffer({voiceActivityDetection:true, iceRestart:false})); |
- }, 'createOffer({voiceActivityDetection:true, iceRestart:false})' ); |
- |
- promise_test(function() { |
- return promise_rejects(this, defaultError, pc.createOffer({})); |
- }, 'createOffer({})' ); |
- |
- promise_test(function() { |
- return promise_rejects(this, defaultError, pc.createOffer()); |
- }, 'createOffer()' ); |
- |
- // Test type error |
- promise_test(function() { |
- return promise_rejects(this, new TypeError(), pc.createOffer(1)); |
- }, 'createOffer(1)' ); |
- |
- // Test closed connection |
- closedPC = new webkitRTCPeerConnection(null); |
- closedPC.close(); |
- promise_test(function() { |
- var invalidStateError = new DOMException('', 'InvalidStateError'); |
- return promise_rejects(this, invalidStateError, closedPC.createOffer({iceRestart:true})); |
- }, 'createOffer() with closed peer connection' ); |
- </script> |
- </body> |
-</html> |