historical.html (1485B)
1 <!doctype html> 2 <title>Historical WebRTC features</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script src="RTCConfiguration-helper.js"></script> 6 <div id="log"></div> 7 <script> 8 [ 9 'reliable', 10 'maxRetransmitTime', 11 ].forEach((member) => { 12 test(() => { 13 assert_false(member in RTCDataChannel.prototype); 14 }, `RTCDataChannel member ${member} should not exist`); 15 }); 16 17 [ 18 "addStream", 19 "createDTMFSender", 20 "getLocalStreams", 21 "getRemoteStreams", 22 "getStreamById", 23 "onaddstream", 24 "onremovestream", 25 "removeStream", 26 "updateIce", 27 ].forEach(function(name) { 28 test(function() { 29 assert_false(name in RTCPeerConnection.prototype); 30 }, "RTCPeerConnection member " + name + " should not exist"); 31 }); 32 33 [ 34 "setDirection", 35 ].forEach(function(name) { 36 test(function() { 37 assert_false(name in RTCRtpTransceiver.prototype); 38 }, "RTCRtpTransceiver member " + name + " should not exist"); 39 }); 40 41 [ 42 "DataChannel", 43 "mozRTCIceCandidate", 44 "mozRTCPeerConnection", 45 "mozRTCSessionDescription", 46 "webkitRTCPeerConnection", 47 ].forEach(function(name) { 48 test(function() { 49 assert_false(name in window); 50 }, name + " interface should not exist"); 51 }); 52 53 // Blink and Gecko fall back to url, but it's not in the spec. 54 config_test(makePc => { 55 assert_throws_js(TypeError, () => 56 makePc({ iceServers: [{ 57 url: 'stun:stun1.example.net' 58 }] })); 59 }, 'with url field should throw TypeError'); 60 </script>