Expose RTCPeerConnection unprefixed
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Oct 2016 18:09:41 +0000 (18:09 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Oct 2016 18:09:41 +0000 (18:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=164060

Patch by Youenn Fablet <youenn@apple.com> on 2016-10-28
Reviewed by Darin Adler.

LayoutTests/imported/w3c:

* web-platform-tests/webrtc/datachannel-emptystring-expected.txt: Added.
* web-platform-tests/webrtc/no-media-call-expected.txt: Added.
* web-platform-tests/webrtc/promises-call-expected.txt: Added.
* web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt: Added.
* web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt: Added.
* web-platform-tests/webrtc/simplecall-expected.txt: Added.

Source/WebCore:

Covered by rebased and activated tests.

* Modules/mediastream/RTCPeerConnection.idl:

LayoutTests:

* TestExpectations:
* fast/mediastream/RTCPeerConnection-AddRemoveStream.html:
* fast/mediastream/RTCPeerConnection-add-removeTrack-expected.txt:
* fast/mediastream/RTCPeerConnection-add-removeTrack.html:
* fast/mediastream/RTCPeerConnection-addIceCandidate.html:
* fast/mediastream/RTCPeerConnection-addTrack-reuse-sender.html:
* fast/mediastream/RTCPeerConnection-addTransceiver.html:
* fast/mediastream/RTCPeerConnection-closed-state-expected.txt:
* fast/mediastream/RTCPeerConnection-closed-state.html:
* fast/mediastream/RTCPeerConnection-createAnswer.html:
* fast/mediastream/RTCPeerConnection-createOffer.html:
* fast/mediastream/RTCPeerConnection-datachannel.html:
* fast/mediastream/RTCPeerConnection-dtmf.html:
* fast/mediastream/RTCPeerConnection-events.html:
* fast/mediastream/RTCPeerConnection-expected.txt:
* fast/mediastream/RTCPeerConnection-getConfiguration.html:
* fast/mediastream/RTCPeerConnection-have-local-offer.html:
* fast/mediastream/RTCPeerConnection-have-local-pranswer.html:
* fast/mediastream/RTCPeerConnection-have-remote-offer.html:
* fast/mediastream/RTCPeerConnection-have-remote-pranswer.html:
* fast/mediastream/RTCPeerConnection-ice-expected.txt:
* fast/mediastream/RTCPeerConnection-ice.html:
* fast/mediastream/RTCPeerConnection-icecandidate-event.html:
* fast/mediastream/RTCPeerConnection-iceconnectionstatechange-event.html:
* fast/mediastream/RTCPeerConnection-inspect-answer.html:
* fast/mediastream/RTCPeerConnection-inspect-offer.html:
* fast/mediastream/RTCPeerConnection-js-built-ins-check-this-expected.txt:
* fast/mediastream/RTCPeerConnection-js-built-ins-check-this.html:
* fast/mediastream/RTCPeerConnection-legacy-stream-based-api.html:
* fast/mediastream/RTCPeerConnection-localDescription.html:
* fast/mediastream/RTCPeerConnection-media-setup-callbacks-single-dialog.html:
* fast/mediastream/RTCPeerConnection-media-setup-single-dialog.html:
* fast/mediastream/RTCPeerConnection-media-setup-two-dialogs.html:
* fast/mediastream/RTCPeerConnection-more-media-to-negotiate.html:
* fast/mediastream/RTCPeerConnection-onnegotiationneeded.html:
* fast/mediastream/RTCPeerConnection-overloaded-operations-expected.txt:
* fast/mediastream/RTCPeerConnection-overloaded-operations-params-expected.txt:
* fast/mediastream/RTCPeerConnection-overloaded-operations-params.html:
* fast/mediastream/RTCPeerConnection-overloaded-operations.html:
* fast/mediastream/RTCPeerConnection-remoteDescription.html:
* fast/mediastream/RTCPeerConnection-remotely-assigned-transceiver-mid.html:
* fast/mediastream/RTCPeerConnection-setLocalDescription-offer.html:
* fast/mediastream/RTCPeerConnection-setRemoteDescription-offer.html:
* fast/mediastream/RTCPeerConnection-stable.html:
* fast/mediastream/RTCPeerConnection-stats-expected.txt:
* fast/mediastream/RTCPeerConnection-stats.html:
* fast/mediastream/RTCPeerConnection-statsSelector-expected.txt:
* fast/mediastream/RTCPeerConnection-statsSelector.html:
* fast/mediastream/RTCPeerConnection.html:
* fast/mediastream/RTCRtpSender-replaceTrack.html:
* fast/mediastream/RTCTrackEvent-constructor.html:
* platform/efl/TestExpectations:
* platform/efl/js/dom/global-constructors-attributes-expected.txt:
* platform/gtk/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-wk1/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt:
* platform/mac/js/dom/global-constructors-attributes-expected.txt:
* platform/win/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208057 268f45cc-cd09-0410-ab3c-d52691b4dbfc

68 files changed:
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/fast/mediastream/RTCPeerConnection-AddRemoveStream.html
LayoutTests/fast/mediastream/RTCPeerConnection-add-removeTrack-expected.txt
LayoutTests/fast/mediastream/RTCPeerConnection-add-removeTrack.html
LayoutTests/fast/mediastream/RTCPeerConnection-addIceCandidate.html
LayoutTests/fast/mediastream/RTCPeerConnection-addTrack-reuse-sender.html
LayoutTests/fast/mediastream/RTCPeerConnection-addTransceiver.html
LayoutTests/fast/mediastream/RTCPeerConnection-closed-state-expected.txt
LayoutTests/fast/mediastream/RTCPeerConnection-closed-state.html
LayoutTests/fast/mediastream/RTCPeerConnection-createAnswer.html
LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html
LayoutTests/fast/mediastream/RTCPeerConnection-datachannel.html
LayoutTests/fast/mediastream/RTCPeerConnection-dtmf.html
LayoutTests/fast/mediastream/RTCPeerConnection-events.html
LayoutTests/fast/mediastream/RTCPeerConnection-expected.txt
LayoutTests/fast/mediastream/RTCPeerConnection-getConfiguration.html
LayoutTests/fast/mediastream/RTCPeerConnection-have-local-offer.html
LayoutTests/fast/mediastream/RTCPeerConnection-have-local-pranswer.html
LayoutTests/fast/mediastream/RTCPeerConnection-have-remote-offer.html
LayoutTests/fast/mediastream/RTCPeerConnection-have-remote-pranswer.html
LayoutTests/fast/mediastream/RTCPeerConnection-ice-expected.txt
LayoutTests/fast/mediastream/RTCPeerConnection-ice.html
LayoutTests/fast/mediastream/RTCPeerConnection-icecandidate-event.html
LayoutTests/fast/mediastream/RTCPeerConnection-iceconnectionstatechange-event.html
LayoutTests/fast/mediastream/RTCPeerConnection-inspect-answer.html
LayoutTests/fast/mediastream/RTCPeerConnection-inspect-offer.html
LayoutTests/fast/mediastream/RTCPeerConnection-js-built-ins-check-this-expected.txt
LayoutTests/fast/mediastream/RTCPeerConnection-js-built-ins-check-this.html
LayoutTests/fast/mediastream/RTCPeerConnection-legacy-stream-based-api.html
LayoutTests/fast/mediastream/RTCPeerConnection-localDescription.html
LayoutTests/fast/mediastream/RTCPeerConnection-media-setup-callbacks-single-dialog.html
LayoutTests/fast/mediastream/RTCPeerConnection-media-setup-single-dialog.html
LayoutTests/fast/mediastream/RTCPeerConnection-media-setup-two-dialogs.html
LayoutTests/fast/mediastream/RTCPeerConnection-more-media-to-negotiate.html
LayoutTests/fast/mediastream/RTCPeerConnection-onnegotiationneeded.html
LayoutTests/fast/mediastream/RTCPeerConnection-overloaded-operations-expected.txt
LayoutTests/fast/mediastream/RTCPeerConnection-overloaded-operations-params-expected.txt
LayoutTests/fast/mediastream/RTCPeerConnection-overloaded-operations-params.html
LayoutTests/fast/mediastream/RTCPeerConnection-overloaded-operations.html
LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription.html
LayoutTests/fast/mediastream/RTCPeerConnection-remotely-assigned-transceiver-mid.html
LayoutTests/fast/mediastream/RTCPeerConnection-setLocalDescription-offer.html
LayoutTests/fast/mediastream/RTCPeerConnection-setRemoteDescription-offer.html
LayoutTests/fast/mediastream/RTCPeerConnection-stable.html
LayoutTests/fast/mediastream/RTCPeerConnection-stats-expected.txt
LayoutTests/fast/mediastream/RTCPeerConnection-stats.html
LayoutTests/fast/mediastream/RTCPeerConnection-statsSelector-expected.txt
LayoutTests/fast/mediastream/RTCPeerConnection-statsSelector.html
LayoutTests/fast/mediastream/RTCPeerConnection.html
LayoutTests/fast/mediastream/RTCRtpSender-replaceTrack.html
LayoutTests/fast/mediastream/RTCTrackEvent-constructor.html
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/webrtc/datachannel-emptystring-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/webrtc/no-media-call-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/webrtc/promises-call-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/webrtc/simplecall-expected.txt [new file with mode: 0644]
LayoutTests/platform/efl/TestExpectations
LayoutTests/platform/efl/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac-wk1/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/win/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediastream/RTCPeerConnection.idl

index 093cdde..0877933 100644 (file)
@@ -1,3 +1,69 @@
+2016-10-28  Youenn Fablet  <youenn@apple.com>
+
+        Expose RTCPeerConnection unprefixed
+        https://bugs.webkit.org/show_bug.cgi?id=164060
+
+        Reviewed by Darin Adler.
+
+        * TestExpectations:
+        * fast/mediastream/RTCPeerConnection-AddRemoveStream.html:
+        * fast/mediastream/RTCPeerConnection-add-removeTrack-expected.txt:
+        * fast/mediastream/RTCPeerConnection-add-removeTrack.html:
+        * fast/mediastream/RTCPeerConnection-addIceCandidate.html:
+        * fast/mediastream/RTCPeerConnection-addTrack-reuse-sender.html:
+        * fast/mediastream/RTCPeerConnection-addTransceiver.html:
+        * fast/mediastream/RTCPeerConnection-closed-state-expected.txt:
+        * fast/mediastream/RTCPeerConnection-closed-state.html:
+        * fast/mediastream/RTCPeerConnection-createAnswer.html:
+        * fast/mediastream/RTCPeerConnection-createOffer.html:
+        * fast/mediastream/RTCPeerConnection-datachannel.html:
+        * fast/mediastream/RTCPeerConnection-dtmf.html:
+        * fast/mediastream/RTCPeerConnection-events.html:
+        * fast/mediastream/RTCPeerConnection-expected.txt:
+        * fast/mediastream/RTCPeerConnection-getConfiguration.html:
+        * fast/mediastream/RTCPeerConnection-have-local-offer.html:
+        * fast/mediastream/RTCPeerConnection-have-local-pranswer.html:
+        * fast/mediastream/RTCPeerConnection-have-remote-offer.html:
+        * fast/mediastream/RTCPeerConnection-have-remote-pranswer.html:
+        * fast/mediastream/RTCPeerConnection-ice-expected.txt:
+        * fast/mediastream/RTCPeerConnection-ice.html:
+        * fast/mediastream/RTCPeerConnection-icecandidate-event.html:
+        * fast/mediastream/RTCPeerConnection-iceconnectionstatechange-event.html:
+        * fast/mediastream/RTCPeerConnection-inspect-answer.html:
+        * fast/mediastream/RTCPeerConnection-inspect-offer.html:
+        * fast/mediastream/RTCPeerConnection-js-built-ins-check-this-expected.txt:
+        * fast/mediastream/RTCPeerConnection-js-built-ins-check-this.html:
+        * fast/mediastream/RTCPeerConnection-legacy-stream-based-api.html:
+        * fast/mediastream/RTCPeerConnection-localDescription.html:
+        * fast/mediastream/RTCPeerConnection-media-setup-callbacks-single-dialog.html:
+        * fast/mediastream/RTCPeerConnection-media-setup-single-dialog.html:
+        * fast/mediastream/RTCPeerConnection-media-setup-two-dialogs.html:
+        * fast/mediastream/RTCPeerConnection-more-media-to-negotiate.html:
+        * fast/mediastream/RTCPeerConnection-onnegotiationneeded.html:
+        * fast/mediastream/RTCPeerConnection-overloaded-operations-expected.txt:
+        * fast/mediastream/RTCPeerConnection-overloaded-operations-params-expected.txt:
+        * fast/mediastream/RTCPeerConnection-overloaded-operations-params.html:
+        * fast/mediastream/RTCPeerConnection-overloaded-operations.html:
+        * fast/mediastream/RTCPeerConnection-remoteDescription.html:
+        * fast/mediastream/RTCPeerConnection-remotely-assigned-transceiver-mid.html:
+        * fast/mediastream/RTCPeerConnection-setLocalDescription-offer.html:
+        * fast/mediastream/RTCPeerConnection-setRemoteDescription-offer.html:
+        * fast/mediastream/RTCPeerConnection-stable.html:
+        * fast/mediastream/RTCPeerConnection-stats-expected.txt:
+        * fast/mediastream/RTCPeerConnection-stats.html:
+        * fast/mediastream/RTCPeerConnection-statsSelector-expected.txt:
+        * fast/mediastream/RTCPeerConnection-statsSelector.html:
+        * fast/mediastream/RTCPeerConnection.html:
+        * fast/mediastream/RTCRtpSender-replaceTrack.html:
+        * fast/mediastream/RTCTrackEvent-constructor.html:
+        * platform/efl/TestExpectations:
+        * platform/efl/js/dom/global-constructors-attributes-expected.txt:
+        * platform/gtk/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac-wk1/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt:
+        * platform/mac/js/dom/global-constructors-attributes-expected.txt:
+        * platform/win/TestExpectations:
+
 2016-10-28  Dave Hyatt  <hyatt@apple.com>
 
         Fix busted layout test from previous check-in.
index e7e25b0..f3b5ab4 100644 (file)
@@ -977,7 +977,5 @@ webkit.org/b/163636 media/modern-media-controls/media-controller/media-controlle
 
 webkit.org/b/163887 svg/as-image/svg-image-with-data-uri-use-data-uri.svg [ Pass Crash ]
 
-imported/w3c/web-platform-tests/webrtc [ Skip ]
-
 # Temporary failure until we start using ANGLE as a WebGL backend
 webkit.org/b/163924 fast/canvas/webgl/bufferData-offset-length.html [ Pass Failure ]
index 1f79ad6..d9d0798 100644 (file)
@@ -75,7 +75,7 @@
                 testPassed('Got a stream.');
                 stream = s;
 
-                pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+                pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
                 pc.onnegotiationneeded = onErroneousNegotiationNeeded;
                 shouldThrow("pc.addStream(null)");
 
index d85ceac..193e5c4 100644 (file)
@@ -5,16 +5,16 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 Test bad addTrack() arguments
 PASS pc.addTrack() threw exception TypeError: Not enough arguments.
-PASS pc.addTrack(null) threw exception TypeError: Argument 1 ('track') to webkitRTCPeerConnection.addTrack must be an instance of MediaStreamTrack.
-PASS pc.addTrack({}) threw exception TypeError: Argument 1 ('track') to webkitRTCPeerConnection.addTrack must be an instance of MediaStreamTrack.
+PASS pc.addTrack(null) threw exception TypeError: Argument 1 ('track') to RTCPeerConnection.addTrack must be an instance of MediaStreamTrack.
+PASS pc.addTrack({}) threw exception TypeError: Argument 1 ('track') to RTCPeerConnection.addTrack must be an instance of MediaStreamTrack.
 PASS pc.addTrack(track, null) threw exception TypeError: Type error.
 PASS pc.addTrack(track, {}) threw exception TypeError: Type error.
 PASS pc.addTrack(track, stream, null) threw exception TypeError: Type error.
 
 Test bad removeTrack() arguments
 PASS pc.removeTrack() threw exception TypeError: Not enough arguments.
-PASS pc.removeTrack(null) threw exception TypeError: Argument 1 ('sender') to webkitRTCPeerConnection.removeTrack must be an instance of RTCRtpSender.
-PASS pc.removeTrack({}) threw exception TypeError: Argument 1 ('sender') to webkitRTCPeerConnection.removeTrack must be an instance of RTCRtpSender.
+PASS pc.removeTrack(null) threw exception TypeError: Argument 1 ('sender') to RTCPeerConnection.removeTrack must be an instance of RTCRtpSender.
+PASS pc.removeTrack({}) threw exception TypeError: Argument 1 ('sender') to RTCPeerConnection.removeTrack must be an instance of RTCRtpSender.
 
 PASS pc.getSenders().length is 0
 PASS sender = pc.addTrack(track, stream) did not throw exception.
@@ -43,10 +43,10 @@ PASS pc.getSenders().length is 2
 PASS senderFromPc2 = pc2.addTrack(track, stream) did not throw exception.
 removeTrack() with 'foreign' sender must be ignored (not throw)
 PASS pc.removeTrack(senderFromPc2) did not throw exception.
-PASS pc.addTrack(null); threw exception TypeError: Argument 1 ('track') to webkitRTCPeerConnection.addTrack must be an instance of MediaStreamTrack.
-PASS pc.addTrack(undefined); threw exception TypeError: Argument 1 ('track') to webkitRTCPeerConnection.addTrack must be an instance of MediaStreamTrack.
-PASS pc.removeTrack(null); threw exception TypeError: Argument 1 ('sender') to webkitRTCPeerConnection.removeTrack must be an instance of RTCRtpSender.
-PASS pc.removeTrack(undefined); threw exception TypeError: Argument 1 ('sender') to webkitRTCPeerConnection.removeTrack must be an instance of RTCRtpSender.
+PASS pc.addTrack(null); threw exception TypeError: Argument 1 ('track') to RTCPeerConnection.addTrack must be an instance of MediaStreamTrack.
+PASS pc.addTrack(undefined); threw exception TypeError: Argument 1 ('track') to RTCPeerConnection.addTrack must be an instance of MediaStreamTrack.
+PASS pc.removeTrack(null); threw exception TypeError: Argument 1 ('sender') to RTCPeerConnection.removeTrack must be an instance of RTCRtpSender.
+PASS pc.removeTrack(undefined); threw exception TypeError: Argument 1 ('sender') to RTCPeerConnection.removeTrack must be an instance of RTCRtpSender.
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 4828a85..405909d 100644 (file)
@@ -24,8 +24,8 @@
                 finishJSTest();
             }
 
-            var pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
-            var pc2 = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            var pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            var pc2 = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             navigator.mediaDevices.getUserMedia({ "video": true })
             .then(function (s) {
index 6bd0540..a45dd92 100644 (file)
@@ -25,8 +25,8 @@
                 finishJSTest();
             }
 
-            const pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
-            const remotePc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const remotePc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             debug("<br>*** A remote description is needed before a candidate can be added");
             shouldBe("pc.remoteDescription", "null");
index 18d5925..43512e9 100644 (file)
@@ -21,8 +21,8 @@
                 finishJSTest();
             }
 
-            const pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
-            const remotePc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const remotePc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             navigator.mediaDevices.getUserMedia({ "audio": true, "video": true })
             .then(function (s) {
index 96d9d21..bd7e184 100644 (file)
@@ -20,7 +20,7 @@
                 finishJSTest();
             }
 
-            var pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            var pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             navigator.mediaDevices.getUserMedia({ "audio": true, "video": true })
             .then(function (s) {
index 26b9226..5893364 100644 (file)
@@ -3,7 +3,7 @@ Test calling RTCPeerConnection functions/attributes in closed state
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}); did not throw exception.
+PASS pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}); did not throw exception.
 PASS pc.signalingState is "stable"
 Get a sender before closing (to test removeTrack later)
 PASS sender = pc.addTrack(stream.getTracks()[0], stream) did not throw exception.
index 2bd6bb2..8a596ea 100644 (file)
@@ -18,7 +18,7 @@
             var stream;
             var sender;
 
-            shouldNotThrow("pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});");
+            shouldNotThrow("pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});");
             shouldBeEqualToString('pc.signalingState', 'stable');
 
             var desc = new RTCSessionDescription({ "type": "offer" });
index 3dcdf41..1f456b8 100644 (file)
@@ -84,7 +84,7 @@
                 shouldThrow('pc.createAnswer(requestSucceeded2, requestFailed2, {});');
             }
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
             shouldNotThrow('pc.createAnswer(requestSucceeded1, requestFailed1);');
 
             window.jsTestIsAsync = true;
index 92d9b8a..1d5e8ec 100644 (file)
                 shouldThrow('pc.createOffer(requestSucceeded2, requestFailed2, {});');
             }
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
             shouldNotThrow('pc.createOffer(requestSucceeded1, requestFailed1);');
 
             window.jsTestIsAsync = true;
index 9c860f8..963a7f1 100644 (file)
@@ -84,7 +84,7 @@
                 }
             }
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
             shouldThrow('dc = pc.createDataChannel("label", {maxRetransmitTime:0, maxRetransmits:0});');
             shouldNotThrow('dc = pc.createDataChannel("label1");');
             shouldNotThrow('dc = pc.createDataChannel("label2", {});');
@@ -93,7 +93,7 @@
             shouldNotThrow('dc = pc.createDataChannel("label3", {maxRetransmits:0});');
             shouldNotThrow('dc = pc.createDataChannel("label3", {maxRetransmitTime:0});');
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
             pc.oniceconnectionstatechange = pc_onicechange;
             pc.ondatachannel = pc_ondatachannel;
 
index 336b126..ce528b4 100644 (file)
@@ -68,7 +68,7 @@
                 shouldBe('stream.getAudioTracks().length', '1');
                 shouldBe('stream.getVideoTracks().length', '0');
 
-                pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+                pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
                 pc.oniceconnectionstatechange = pc_onicechange;
             }
 
index 42375f4..96e58d9 100644 (file)
@@ -41,7 +41,7 @@
                 testPassed('gotStream was called.');
                 stream = s;
 
-                pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+                pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
                 pc.onnegotiationneeded = onNegotiationNeeded;
 
                 pc.addStream(stream);
index c625838..6b749e6 100644 (file)
@@ -3,51 +3,51 @@ Tests the RTCPeerConnection constructor.
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS new webkitRTCPeerConnection(null); threw exception TypeError: RTCPeerConnection argument must be a valid Dictionary.
-PASS new webkitRTCPeerConnection(undefined); threw exception TypeError: RTCPeerConnection argument must be a valid Dictionary.
-PASS new webkitRTCPeerConnection(); threw exception TypeError: Not enough arguments.
-PASS new webkitRTCPeerConnection(''); threw exception TypeError: RTCPeerConnection argument must be a valid Dictionary.
-PASS new webkitRTCPeerConnection({}); threw exception TypeError: Invalid RTCPeerConnection constructor arguments.
-PASS new webkitRTCPeerConnection({iceServers:[]}); threw exception TypeError: Error creating RTCPeerConnection.
-PASS new webkitRTCPeerConnection({iceServers:[{url:'stun:foo.com'}]}); threw exception TypeError: Error creating RTCPeerConnection.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'http:foo.com'}]}); threw exception TypeError: Error creating RTCPeerConnection.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:['stun:foo.com', 'turn:foo.com']}]}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}, {urls:['stun:foo.com', 'turn:bar.com']}]}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], requestIdentity:'yes'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], requestIdentity:'no'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], requestIdentity:'ifconfigured'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'foo', requestIdentity:'bar'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'bar'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'foo', requestIdentity:'no'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'yes'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'no'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'ifconfigured'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay', requestIdentity:'yes'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay', requestIdentity:'no'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay', requestIdentity:'ifconfigured'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all', requestIdentity:'yes'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all', requestIdentity:'no'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all', requestIdentity:'ifconfigured'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'}]}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'},{urls:'stun:bar.com'}]}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com', username:'user'}]}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'}]}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:'stun:bar.com', username:'user2', credential:'x'}]}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:['stun:bar.com', 'turn:foo.com', 'turn:foo2.com'], username:'user2', credential:'x'}]}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'}], iceTransports:'all', requestIdentity:'ifconfigured'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'},{urls:'stun:bar.com'}], iceTransports:'all', requestIdentity:'ifconfigured'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com', username:'user'}], iceTransports:'all', requestIdentity:'ifconfigured'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'}], iceTransports:'all', requestIdentity:'ifconfigured'}); did not throw exception.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:'stun:bar.com', username:'user2', credential:'x'}], iceTransports:'all', requestIdentity:'ifconfigured'}); did not throw exception.
-PASS new webkitRTCPeerConnection({fooServers:[]}); threw exception TypeError: Invalid RTCPeerConnection constructor arguments.
-PASS new webkitRTCPeerConnection({iceServers:true}); threw exception TypeError: Invalid RTCPeerConnection constructor arguments.
-PASS new webkitRTCPeerConnection({iceServers:[1, 2, 3]}); threw exception TypeError: Invalid RTCPeerConnection constructor arguments.
-PASS new webkitRTCPeerConnection({iceServers:[{}]}); threw exception TypeError: Error creating RTCPeerConnection.
-PASS new webkitRTCPeerConnection({iceServers:[{urls:'foo'}]}); threw exception TypeError: Error creating RTCPeerConnection.
+PASS new RTCPeerConnection(null); threw exception TypeError: RTCPeerConnection argument must be a valid Dictionary.
+PASS new RTCPeerConnection(undefined); threw exception TypeError: RTCPeerConnection argument must be a valid Dictionary.
+PASS new RTCPeerConnection(); threw exception TypeError: Not enough arguments.
+PASS new RTCPeerConnection(''); threw exception TypeError: RTCPeerConnection argument must be a valid Dictionary.
+PASS new RTCPeerConnection({}); threw exception TypeError: Invalid RTCPeerConnection constructor arguments.
+PASS new RTCPeerConnection({iceServers:[]}); threw exception TypeError: Error creating RTCPeerConnection.
+PASS new RTCPeerConnection({iceServers:[{url:'stun:foo.com'}]}); threw exception TypeError: Error creating RTCPeerConnection.
+PASS new RTCPeerConnection({iceServers:[{urls:'http:foo.com'}]}); threw exception TypeError: Error creating RTCPeerConnection.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:['stun:foo.com', 'turn:foo.com']}]}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}, {urls:['stun:foo.com', 'turn:bar.com']}]}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], requestIdentity:'yes'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], requestIdentity:'no'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], requestIdentity:'ifconfigured'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'foo', requestIdentity:'bar'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'bar'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'foo', requestIdentity:'no'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'yes'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'no'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'ifconfigured'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay', requestIdentity:'yes'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay', requestIdentity:'no'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay', requestIdentity:'ifconfigured'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all', requestIdentity:'yes'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all', requestIdentity:'no'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all', requestIdentity:'ifconfigured'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'}]}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'},{urls:'stun:bar.com'}]}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com', username:'user'}]}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'}]}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:'stun:bar.com', username:'user2', credential:'x'}]}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:['stun:bar.com', 'turn:foo.com', 'turn:foo2.com'], username:'user2', credential:'x'}]}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'}], iceTransports:'all', requestIdentity:'ifconfigured'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'},{urls:'stun:bar.com'}], iceTransports:'all', requestIdentity:'ifconfigured'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com', username:'user'}], iceTransports:'all', requestIdentity:'ifconfigured'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'}], iceTransports:'all', requestIdentity:'ifconfigured'}); did not throw exception.
+PASS new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:'stun:bar.com', username:'user2', credential:'x'}], iceTransports:'all', requestIdentity:'ifconfigured'}); did not throw exception.
+PASS new RTCPeerConnection({fooServers:[]}); threw exception TypeError: Invalid RTCPeerConnection constructor arguments.
+PASS new RTCPeerConnection({iceServers:true}); threw exception TypeError: Invalid RTCPeerConnection constructor arguments.
+PASS new RTCPeerConnection({iceServers:[1, 2, 3]}); threw exception TypeError: Invalid RTCPeerConnection constructor arguments.
+PASS new RTCPeerConnection({iceServers:[{}]}); threw exception TypeError: Error creating RTCPeerConnection.
+PASS new RTCPeerConnection({iceServers:[{urls:'foo'}]}); threw exception TypeError: Error creating RTCPeerConnection.
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 66824fe..763c5ea 100644 (file)
                 }
             }
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
             var servers = [{urls:['stun:foo.com'], username:'', credential:''}];
             configuration = pc.getConfiguration();
             checkConfiguration(servers, 'all', 'balanced');
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:'stun:bar.com', username:'user2', credential:'x'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:'stun:bar.com', username:'user2', credential:'x'}]});
             servers = [{urls:['turn:foo.com'], username:'user', credential:'x'}, {urls:['stun:bar.com'], username:'user2', credential:'x'}];
             configuration = pc.getConfiguration();
             checkConfiguration(servers, 'all', 'balanced');
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:['stun:bar.com', 'turn:foo.com', 'turn:foo2.com'], username:'user2', credential:'x'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:['stun:bar.com', 'turn:foo.com', 'turn:foo2.com'], username:'user2', credential:'x'}]});
             servers = [{urls:['turn:foo.com'], username:'user', credential:'x'},{urls:['stun:bar.com', 'turn:foo.com', 'turn:foo2.com'], username:'user2', credential:'x'}];
             configuration = pc.getConfiguration();
             checkConfiguration(servers, 'all', 'balanced');
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransportPolicy:'relay', bundlePolicy:'balanced'});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransportPolicy:'relay', bundlePolicy:'balanced'});
             var servers = [{urls:['stun:foo.com'], username:'', credential:''}];
             configuration = pc.getConfiguration();
             checkConfiguration(servers, 'relay', 'balanced');
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransportPolicy:'relay', bundlePolicy:'max-compat'});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransportPolicy:'relay', bundlePolicy:'max-compat'});
             var servers = [{urls:['stun:foo.com'], username:'', credential:''}];
             configuration = pc.getConfiguration();
             checkConfiguration(servers, 'relay', 'max-compat');
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:['stun:bar.com', 'turn:foo.com', 'turn:foo2.com'], username:'user2', credential:'x'}], iceTransportPolicy:'relay', bundlePolicy:'max-bundle'});
+            pc = new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:['stun:bar.com', 'turn:foo.com', 'turn:foo2.com'], username:'user2', credential:'x'}], iceTransportPolicy:'relay', bundlePolicy:'max-bundle'});
             servers = [{urls:['turn:foo.com'], username:'user', credential:'x'},{urls:['stun:bar.com', 'turn:foo.com', 'turn:foo2.com'], username:'user2', credential:'x'}];
             configuration = pc.getConfiguration();
             checkConfiguration(servers, 'relay', 'max-bundle');
index 1791747..dea481d 100644 (file)
@@ -28,7 +28,7 @@
             {
                 testPassed('setRemoteDescription succeeded.');
                 check("offer", "local", "pranswer", "remote", '"have-remote-pranswer"');
-                pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+                pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
                 check("", "", "", "", '"stable"');
                 sessionDescription = new RTCSessionDescription({type:"offer", sdp:"local"});
                 shouldNotThrow('pc.setLocalDescription(sessionDescription, requestSucceeded4, finishIfFailed);');
                 shouldBe('pc.signalingState', signalingState);
             }
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
             shouldBe('pc.signalingState', '"stable"');
             var sessionDescription = new RTCSessionDescription({type:"offer", sdp:"local"});
             shouldNotThrow('pc.setLocalDescription(sessionDescription, requestSucceeded1, finishIfFailed);');
index b5d3c54..4825bd4 100644 (file)
                 shouldBe('pc.signalingState', signalingState);
             }
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
             shouldBe('pc.signalingState', '"stable"');
             var sessionDescription = new RTCSessionDescription({type:"offer", sdp:"remote"});
             shouldNotThrow('pc.setRemoteDescription(sessionDescription, requestSucceeded1, finishIfFailed);');
index 0a9a5e5..fd5bf88 100644 (file)
@@ -28,7 +28,7 @@
             {
                 testPassed('setLocalDescription succeeded.');
                 check("answer", "local", "offer", "remote", '"stable"');
-                pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+                pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
                 check("", "", "", "", '"stable"');
                 sessionDescription = new RTCSessionDescription({type:"offer", sdp:"remote"});
                 shouldNotThrow('pc.setRemoteDescription(sessionDescription, requestSucceeded4, finishIfFailed);');
                 shouldBe('pc.signalingState', signalingState);
             }
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
             shouldBe('pc.signalingState', '"stable"');
             var sessionDescription = new RTCSessionDescription({type:"offer", sdp:"remote"});
             shouldNotThrow('pc.setRemoteDescription(sessionDescription, requestSucceeded1, finishIfFailed);');
index 7536d7b..df3de00 100644 (file)
                 shouldBe('pc.signalingState', signalingState);
             }
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
             shouldBe('pc.signalingState', '"stable"');
             var sessionDescription = new RTCSessionDescription({type:"offer", sdp:"local"});
             shouldNotThrow('pc.setLocalDescription(sessionDescription, requestSucceeded1, finishIfFailed);');
index db03dd7..4e8b001 100644 (file)
@@ -3,7 +3,7 @@ Tests the RTCPeerConnection Ice functionality.
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}); did not throw exception.
+PASS pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}); did not throw exception.
 PASS iceConnectionState is completed
 PASS pc.addIceCandidate(null, null, null); threw exception TypeError: Argument 2 ('successCallback') to RTCPeerConnection.addIceCandidate must be a function.
 PASS pc.addIceCandidate(iceCandidate, null, null); threw exception TypeError: Argument 2 ('successCallback') to RTCPeerConnection.addIceCandidate must be a function.
index 98ee55c..fe97fe6 100644 (file)
@@ -43,7 +43,7 @@
                 }
             }
 
-            shouldNotThrow("pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});");
+            shouldNotThrow("pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});");
             pc.oniceconnectionstatechange = onIceChange1;
 
             window.jsTestIsAsync = true;
index 6219103..be72f85 100644 (file)
@@ -17,7 +17,7 @@
                 finishJSTest();
             }
 
-            const pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             pc.onicecandidate = function (evt) {
                 event = evt;
index fe6a111..02d4745 100644 (file)
@@ -25,7 +25,7 @@
                 finishJSTest();
             }
 
-            const pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             pc.oniceconnectionstatechange = function () {
                 testPassed("Got icetransportstatechange event");
index 0fd0038..8729a86 100644 (file)
@@ -20,8 +20,8 @@
                 finishJSTest();
             }
 
-            const pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
-            const remotePc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const remotePc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             navigator.mediaDevices.getUserMedia({ "audio": true, "video": true })
             .then(function (s) {
index 2543871..769357a 100644 (file)
@@ -20,7 +20,7 @@
                 finishJSTest();
             }
 
-            var pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            var pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             navigator.mediaDevices.getUserMedia({ "audio": true, "video": true })
             .then(function (s) {
index 25b6426..3f50aee 100644 (file)
@@ -3,12 +3,12 @@ Verify that the RTCPeerConnection JS built-in methods check calling 'this'
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS promise webkitRTCPeerConnection.prototype.createOffer.call({}) rejected with TypeError: Function should be called on an RTCPeerConnection
-PASS promise webkitRTCPeerConnection.prototype.createAnswer.call({}) rejected with TypeError: Function should be called on an RTCPeerConnection
-PASS promise webkitRTCPeerConnection.prototype.setLocalDescription.call({}) rejected with TypeError: Function should be called on an RTCPeerConnection
-PASS promise webkitRTCPeerConnection.prototype.setRemoteDescription.call({}) rejected with TypeError: Function should be called on an RTCPeerConnection
-PASS promise webkitRTCPeerConnection.prototype.addIceCandidate.call({}) rejected with TypeError: Function should be called on an RTCPeerConnection
-PASS promise webkitRTCPeerConnection.prototype.getStats.call({}, null) rejected with TypeError: Function should be called on an RTCPeerConnection
+PASS promise RTCPeerConnection.prototype.createOffer.call({}) rejected with TypeError: Function should be called on an RTCPeerConnection
+PASS promise RTCPeerConnection.prototype.createAnswer.call({}) rejected with TypeError: Function should be called on an RTCPeerConnection
+PASS promise RTCPeerConnection.prototype.setLocalDescription.call({}) rejected with TypeError: Function should be called on an RTCPeerConnection
+PASS promise RTCPeerConnection.prototype.setRemoteDescription.call({}) rejected with TypeError: Function should be called on an RTCPeerConnection
+PASS promise RTCPeerConnection.prototype.addIceCandidate.call({}) rejected with TypeError: Function should be called on an RTCPeerConnection
+PASS promise RTCPeerConnection.prototype.getStats.call({}, null) rejected with TypeError: Function should be called on an RTCPeerConnection
 PASS promise objectWithPcPrototype.createOffer() rejected with TypeError: Function should be called on an RTCPeerConnection
 PASS promise objectWithPcPrototype.createAnswer() rejected with TypeError: Function should be called on an RTCPeerConnection
 PASS promise objectWithPcPrototype.setLocalDescription() rejected with TypeError: Function should be called on an RTCPeerConnection
index dac2744..0def683 100644 (file)
             const reason = "TypeError: Function should be called on an RTCPeerConnection";
 
             function Foo() {}
-            Foo.prototype = webkitRTCPeerConnection.prototype;
+            Foo.prototype = RTCPeerConnection.prototype;
             let objectWithPcPrototype = new Foo();
 
-            promiseShouldReject("webkitRTCPeerConnection.prototype.createOffer.call({})", "reason")
-            .then(() => promiseShouldReject("webkitRTCPeerConnection.prototype.createAnswer.call({})", "reason"))
-            .then(() => promiseShouldReject("webkitRTCPeerConnection.prototype.setLocalDescription.call({})", "reason"))
-            .then(() => promiseShouldReject("webkitRTCPeerConnection.prototype.setRemoteDescription.call({})", "reason"))
-            .then(() => promiseShouldReject("webkitRTCPeerConnection.prototype.addIceCandidate.call({})", "reason"))
-            .then(() => promiseShouldReject("webkitRTCPeerConnection.prototype.getStats.call({}, null)", "reason"))
+            promiseShouldReject("RTCPeerConnection.prototype.createOffer.call({})", "reason")
+            .then(() => promiseShouldReject("RTCPeerConnection.prototype.createAnswer.call({})", "reason"))
+            .then(() => promiseShouldReject("RTCPeerConnection.prototype.setLocalDescription.call({})", "reason"))
+            .then(() => promiseShouldReject("RTCPeerConnection.prototype.setRemoteDescription.call({})", "reason"))
+            .then(() => promiseShouldReject("RTCPeerConnection.prototype.addIceCandidate.call({})", "reason"))
+            .then(() => promiseShouldReject("RTCPeerConnection.prototype.getStats.call({}, null)", "reason"))
 
             .then(() => promiseShouldReject("objectWithPcPrototype.createOffer()", "reason"))
             .then(() => promiseShouldReject("objectWithPcPrototype.createAnswer()", "reason"))
index f4d68d4..fd92f77 100644 (file)
@@ -22,8 +22,8 @@
                 finishJSTest();
             }
 
-            const pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
-            const remotePc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const remotePc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             debug("Stream sets should be empty initially")
             shouldBe("pc.getLocalStreams().length", "0");
index 7122989..13ce481 100644 (file)
@@ -42,7 +42,7 @@
                 shouldNotThrow('pc.setLocalDescription(sessionDescription, requestSucceeded2, requestFailed2);');
             }
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
             var sessionDescription = new RTCSessionDescription({type:"offer", sdp:"local"});
             shouldNotThrow('pc.setLocalDescription(sessionDescription, requestSucceeded1, requestFailed1);');
 
index 1c479dc..0c55389 100644 (file)
             }
 
             debug("Create RTCPeerConnection A");
-            const pcA = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pcA = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             debug("Create RTCPeerConnection B");
-            const pcB = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pcB = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             pcA.ontrack = function () {
                 debug("----------");
index def91df..75b8871 100644 (file)
@@ -19,7 +19,7 @@
             }
 
             debug("Create RTCPeerConnection A");
-            const pcA = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pcA = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             shouldBe("pcA.signalingState", "'stable'");
             shouldBeNull("pcA.pendingLocalDescription");
@@ -28,7 +28,7 @@
             shouldBeNull("pcA.currentRemoteDescription");
 
             debug("<br>Create RTCPeerConnection B");
-            const pcB = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pcB = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             shouldBe("pcB.signalingState", "'stable'");
             shouldBeNull("pcB.pendingLocalDescription");
index 8a7f135..6887f3b 100644 (file)
@@ -19,7 +19,7 @@
             }
 
             debug("Create RTCPeerConnection A");
-            const pcA = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pcA = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             shouldBe("pcA.signalingState", "'stable'");
             shouldBeNull("pcA.pendingLocalDescription");
@@ -28,7 +28,7 @@
             shouldBeNull("pcA.currentRemoteDescription");
 
             debug("<br>Create RTCPeerConnection B");
-            const pcB = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pcB = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             shouldBe("pcB.signalingState", "'stable'");
             shouldBeNull("pcB.pendingLocalDescription");
index ac53e88..9b24be0 100644 (file)
@@ -16,8 +16,8 @@
                 finishJSTest();
             }
 
-            const pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
-            const remotePc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const remotePc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             navigator.mediaDevices.getUserMedia({ "audio": true, "video": true })
             .then(function (s) {
index b9f29d8..ec76942 100644 (file)
@@ -40,7 +40,7 @@
                 testPassed('Got a stream.');
                 stream = s;
 
-                pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+                pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
                 pc.onnegotiationneeded = onNegotiationNeeded;
 
                 audioSender = pc.addTrack(stream.getAudioTracks()[0], stream);
index 7cec339..4443243 100644 (file)
@@ -3,7 +3,7 @@ Test which overloaded RTCPeerConnection function that gets invoked (by return va
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}); did not throw exception.
+PASS pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}); did not throw exception.
 PASS result = pc.createOffer() did not throw exception.
 PASS result is an instance of Promise
 PASS result = pc.createOffer({}) did not throw exception.
index bc745ba..8550207 100644 (file)
@@ -3,7 +3,7 @@ Test various arguments to RTCPeerConnection overloaded functions
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}); did not throw exception.
+PASS pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}); did not throw exception.
 *** Test createOffer
 PASS promise pc.createOffer() did not reject with TypeError.
 PASS promise pc.createOffer(emptyFunc, emptyFunc) did not reject with TypeError.
index 55e426c..d2e53b3 100644 (file)
@@ -15,7 +15,7 @@
 
             description("Test various arguments to RTCPeerConnection overloaded functions");
 
-            shouldNotThrow("pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});");
+            shouldNotThrow("pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});");
 
             function testCreateOfferOrAnswer(functionName) {
                 return new Promise(function (resolve) {
index 4890357..0fd1bb2 100644 (file)
@@ -12,7 +12,7 @@
 
             description("Test which overloaded RTCPeerConnection function that gets invoked (by return value)");
 
-            shouldNotThrow("pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});");
+            shouldNotThrow("pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});");
 
             // Test createOffer/Answer()
             testCreateOfferOrAnswer("createOffer");
index 73caf72..dfefb22 100644 (file)
@@ -42,7 +42,7 @@
                 shouldNotThrow('pc.setRemoteDescription(sessionDescription, requestSucceeded2, requestFailed2);');
             }
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
             var sessionDescription = new RTCSessionDescription({type:"offer", sdp:"remote"});
             shouldNotThrow('pc.setRemoteDescription(sessionDescription, requestSucceeded1, requestFailed1);');
 
index 0117d08..a71b22a 100644 (file)
@@ -19,8 +19,8 @@
                 finishJSTest();
             }
 
-            const pcA = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
-            const pcB = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pcA = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pcB = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             pcA.ontrack = function (evt) {
                 testPassed("A: got remote track event");
index 6a9c69b..1274d8f 100644 (file)
@@ -22,7 +22,7 @@
                 finishJSTest();
             }
 
-            var pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            var pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             shouldBe("pc.signalingState", "'stable'");
 
index ddcffcb..df91a62 100644 (file)
@@ -27,8 +27,8 @@
                 finishJSTest();
             }
 
-            var pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
-            var remotePc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            var pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            var remotePc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             function testRemoteTrack(evt, mediaType) {
                 trackEvent = evt;
index 2ecbecc..7daa82f 100644 (file)
@@ -27,7 +27,7 @@
             {
                 testPassed('setLocalDescription succeeded.');
                 check("offer", "local", "", "", '"have-local-offer"')
-                pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+                pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
                 check("", "", "", "", '"stable"');
                 sessionDescription = new RTCSessionDescription({type:"offer", sdp:"remote"});
                 shouldNotThrow('pc.setRemoteDescription(sessionDescription, requestSucceeded2, finishIfFailed);');
                 shouldBe('pc.signalingState', signalingState);
             }
 
-            pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
             shouldBe('pc.signalingState', '"stable"');
             var sessionDescription = new RTCSessionDescription({type:"answer", sdp:"local"});
             shouldNotThrow('pc.setLocalDescription(sessionDescription, finishIfSucceeded, requestFailed1);');
index 7cec584..6752caa 100644 (file)
@@ -3,7 +3,7 @@ Tests the RTCPeerConnection stats interface.
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}) did not throw exception.
+PASS pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}) did not throw exception.
 PASS pc.getStats(statsHandler1) did not throw exception.
 PASS statsHandler1 was called
 PASS status is non-null.
index 4167f27..cfac61d 100644 (file)
@@ -79,7 +79,7 @@
             }
 
             var startTime = new Date().getTime();
-            shouldNotThrow("pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]})");
+            shouldNotThrow("pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]})");
             // FIXME: Test getStats error callback: https://webkit.org/b/129860
             shouldNotThrow('pc.getStats(statsHandler1, statsError)');
 
index bebf6fd..86b3787 100644 (file)
@@ -3,7 +3,7 @@ Tests the RTCPeerConnection stats selector argument.
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}) did not throw exception.
+PASS pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}) did not throw exception.
 PASS getUserMedia({audio:true, video:true}, gotStream) did not throw exception.
 PASS Got a stream.
 PASS pc.getStats(statsHandler2, pc.getLocalStreams()[0].getVideoTracks()[0]) did not throw exception.
index 79dc813..314c420 100644 (file)
@@ -54,7 +54,7 @@
             }
 
             var startTime = new Date().getTime();
-            shouldNotThrow("pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]})");
+            shouldNotThrow("pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]})");
             shouldNotThrow('getUserMedia({audio:true, video:true}, gotStream)');
 
             window.jsTestIsAsync = true;
index a7c52ac..eb1c3cd 100644 (file)
@@ -7,56 +7,56 @@
         <script>
             description("Tests the RTCPeerConnection constructor.");
 
-            shouldThrow("new webkitRTCPeerConnection(null);");
-            shouldThrow("new webkitRTCPeerConnection(undefined);");
-            shouldThrow("new webkitRTCPeerConnection();");
-            shouldThrow("new webkitRTCPeerConnection('');");
-            shouldThrow("new webkitRTCPeerConnection({});");
-            shouldThrow("new webkitRTCPeerConnection({iceServers:[]});");
-            shouldThrow("new webkitRTCPeerConnection({iceServers:[{url:'stun:foo.com'}]});");
-            shouldThrow("new webkitRTCPeerConnection({iceServers:[{urls:'http:foo.com'}]});");
+            shouldThrow("new RTCPeerConnection(null);");
+            shouldThrow("new RTCPeerConnection(undefined);");
+            shouldThrow("new RTCPeerConnection();");
+            shouldThrow("new RTCPeerConnection('');");
+            shouldThrow("new RTCPeerConnection({});");
+            shouldThrow("new RTCPeerConnection({iceServers:[]});");
+            shouldThrow("new RTCPeerConnection({iceServers:[{url:'stun:foo.com'}]});");
+            shouldThrow("new RTCPeerConnection({iceServers:[{urls:'http:foo.com'}]});");
 
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:['stun:foo.com', 'turn:foo.com']}]});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}, {urls:['stun:foo.com', 'turn:bar.com']}]});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:['stun:foo.com', 'turn:foo.com']}]});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}, {urls:['stun:foo.com', 'turn:bar.com']}]});");
 
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], requestIdentity:'yes'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], requestIdentity:'no'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], requestIdentity:'ifconfigured'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'foo', requestIdentity:'bar'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'bar'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'foo', requestIdentity:'no'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'yes'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'no'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'ifconfigured'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay', requestIdentity:'yes'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay', requestIdentity:'no'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay', requestIdentity:'ifconfigured'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all', requestIdentity:'yes'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all', requestIdentity:'no'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all', requestIdentity:'ifconfigured'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], requestIdentity:'yes'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], requestIdentity:'no'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], requestIdentity:'ifconfigured'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'foo', requestIdentity:'bar'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'bar'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'foo', requestIdentity:'no'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'yes'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'no'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'none', requestIdentity:'ifconfigured'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay', requestIdentity:'yes'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay', requestIdentity:'no'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'relay', requestIdentity:'ifconfigured'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all', requestIdentity:'yes'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all', requestIdentity:'no'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}], iceTransports:'all', requestIdentity:'ifconfigured'});");
 
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'}]});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'},{urls:'stun:bar.com'}]});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com', username:'user'}]});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'}]});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:'stun:bar.com', username:'user2', credential:'x'}]});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:['stun:bar.com', 'turn:foo.com', 'turn:foo2.com'], username:'user2', credential:'x'}]});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'}]});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'},{urls:'stun:bar.com'}]});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com', username:'user'}]});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'}]});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:'stun:bar.com', username:'user2', credential:'x'}]});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:['stun:bar.com', 'turn:foo.com', 'turn:foo2.com'], username:'user2', credential:'x'}]});");
 
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'}], iceTransports:'all', requestIdentity:'ifconfigured'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'},{urls:'stun:bar.com'}], iceTransports:'all', requestIdentity:'ifconfigured'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com', username:'user'}], iceTransports:'all', requestIdentity:'ifconfigured'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'}], iceTransports:'all', requestIdentity:'ifconfigured'});");
-            shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:'stun:bar.com', username:'user2', credential:'x'}], iceTransports:'all', requestIdentity:'ifconfigured'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'}], iceTransports:'all', requestIdentity:'ifconfigured'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', credential:'x'},{urls:'stun:bar.com'}], iceTransports:'all', requestIdentity:'ifconfigured'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'stun:foo.com', username:'user'}], iceTransports:'all', requestIdentity:'ifconfigured'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'}], iceTransports:'all', requestIdentity:'ifconfigured'});");
+            shouldNotThrow("new RTCPeerConnection({iceServers:[{urls:'turn:foo.com', username:'user', credential:'x'},{urls:'stun:bar.com', username:'user2', credential:'x'}], iceTransports:'all', requestIdentity:'ifconfigured'});");
 
-            shouldThrow("new webkitRTCPeerConnection({fooServers:[]});");
-            shouldThrow("new webkitRTCPeerConnection({iceServers:true});");
-            shouldThrow("new webkitRTCPeerConnection({iceServers:[1, 2, 3]});");
-            shouldThrow("new webkitRTCPeerConnection({iceServers:[{}]});");
-            shouldThrow("new webkitRTCPeerConnection({iceServers:[{urls:'foo'}]});");
+            shouldThrow("new RTCPeerConnection({fooServers:[]});");
+            shouldThrow("new RTCPeerConnection({iceServers:true});");
+            shouldThrow("new RTCPeerConnection({iceServers:[1, 2, 3]});");
+            shouldThrow("new RTCPeerConnection({iceServers:[{}]});");
+            shouldThrow("new RTCPeerConnection({iceServers:[{urls:'foo'}]});");
         </script>
         <script src="../../resources/js-test-post.js"></script>
     </body>
index 77d19e9..e017fb0 100644 (file)
@@ -22,7 +22,7 @@
                 finishJSTest();
             }
 
-            var pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            var pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             navigator.mediaDevices.getUserMedia({ "audio": true, "video": true })
             .then(function (s) {
index 61f6585..794d650 100644 (file)
@@ -22,7 +22,7 @@
                 finishJSTest();
             }
 
-            const pc = new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
+            const pc = new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});
 
             navigator.mediaDevices.getUserMedia({ "audio": true, "video": true })
             .then(function (s) {
index 97751d6..7f0a3c9 100644 (file)
@@ -1,5 +1,19 @@
 2016-10-28  Youenn Fablet  <youenn@apple.com>
 
+        Expose RTCPeerConnection unprefixed
+        https://bugs.webkit.org/show_bug.cgi?id=164060
+
+        Reviewed by Darin Adler.
+
+        * web-platform-tests/webrtc/datachannel-emptystring-expected.txt: Added.
+        * web-platform-tests/webrtc/no-media-call-expected.txt: Added.
+        * web-platform-tests/webrtc/promises-call-expected.txt: Added.
+        * web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt: Added.
+        * web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt: Added.
+        * web-platform-tests/webrtc/simplecall-expected.txt: Added.
+
+2016-10-28  Youenn Fablet  <youenn@apple.com>
+
         [Fetch] Ensure redirection count is no more than 20 in case of cross origin requests
         https://bugs.webkit.org/show_bug.cgi?id=164117
 
diff --git a/LayoutTests/imported/w3c/web-platform-tests/webrtc/datachannel-emptystring-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/webrtc/datachannel-emptystring-expected.txt
new file mode 100644 (file)
index 0000000..e842cfa
--- /dev/null
@@ -0,0 +1,5 @@
+
+FAIL Can send empty strings across a WebRTC data channel. RTCPeerConnection argument must be a valid Dictionary
+Messages exchanged
+
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/webrtc/no-media-call-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/webrtc/no-media-call-expected.txt
new file mode 100644 (file)
index 0000000..8235a6f
--- /dev/null
@@ -0,0 +1,5 @@
+
+FAIL Can set up a basic WebRTC call with no data. RTCPeerConnection argument must be a valid Dictionary
+iceConnectionState info
+
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/webrtc/promises-call-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/webrtc/promises-call-expected.txt
new file mode 100644 (file)
index 0000000..db75463
--- /dev/null
@@ -0,0 +1,5 @@
+
+FAIL Can set up a basic WebRTC call with only data using promises. RTCPeerConnection argument must be a valid Dictionary
+iceConnectionState info
+
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt
new file mode 100644 (file)
index 0000000..ef5f53f
--- /dev/null
@@ -0,0 +1,91 @@
+
+PASS RTCPeerConnection.length 
+FAIL new RTCPeerConnection() Not enough arguments
+FAIL new RTCPeerConnection(null) RTCPeerConnection argument must be a valid Dictionary
+FAIL new RTCPeerConnection(undefined) RTCPeerConnection argument must be a valid Dictionary
+FAIL new RTCPeerConnection({}) Invalid RTCPeerConnection constructor arguments
+PASS new RTCPeerConnection({ iceServers: null }) 
+FAIL new RTCPeerConnection({ iceServers: undefined }) Invalid RTCPeerConnection constructor arguments
+FAIL new RTCPeerConnection({ iceServers: [] }) Error creating RTCPeerConnection
+PASS new RTCPeerConnection({ iceServers: [{}] }) 
+PASS new RTCPeerConnection({ iceServers: [null] }) 
+PASS new RTCPeerConnection({ iceServers: [undefined] }) 
+PASS new RTCPeerConnection({ iceServers: [{ urls: "stun:stun1.example.net" }] }) 
+FAIL new RTCPeerConnection({ iceServers: [{ urls: [] }] }) Error creating RTCPeerConnection
+PASS new RTCPeerConnection({ iceServers: [{ urls: ["stun:stun1.example.net"] }] }) 
+PASS new RTCPeerConnection({ iceServers: [{ urls: ["stun:stun1.example.net", "stun:stun2.example.net"] }] }) 
+FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", username: "user", credential: "cred" }] }) Error creating RTCPeerConnection
+PASS new RTCPeerConnection({ iceServers: [{ urls: "turn:turn.example.net", username: "user", credential: "cred" }] }) 
+FAIL new RTCPeerConnection({ iceServers: [{ urls: ["turns:turn.example.org", "turn:turn.example.net"], username: "user", credential: "cred" }] }) Error creating RTCPeerConnection
+PASS new RTCPeerConnection({ iceServers: [{ urls: "stun:stun1.example.net", credentialType: "password" }] }) 
+PASS new RTCPeerConnection({ iceServers: [{ urls: "stun:stun1.example.net", credentialType: "token" }] }) 
+FAIL new RTCPeerConnection({ iceServers: [{ urls: "turn:turn.example.net" }] }) assert_throws: function "function () {
+        eval(expr);
+      }" did not throw
+FAIL new RTCPeerConnection({ iceServers: [{ urls: "turn:turn.example.net", username: "user" }] }) assert_throws: function "function () {
+        eval(expr);
+      }" did not throw
+FAIL new RTCPeerConnection({ iceServers: [{ urls: "turn:turn.example.net", credential: "cred" }] }) assert_throws: function "function () {
+        eval(expr);
+      }" did not throw
+FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org" }] }) assert_throws: function "function () {
+        eval(expr);
+      }" threw object "TypeError: Error creating RTCPeerConnection" that is not a DOMException InvalidAccessError: property "code" is equal to undefined, expected 15
+FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", username: "user" }] }) assert_throws: function "function () {
+        eval(expr);
+      }" threw object "TypeError: Error creating RTCPeerConnection" that is not a DOMException InvalidAccessError: property "code" is equal to undefined, expected 15
+FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", credential: "cred" }] }) assert_throws: function "function () {
+        eval(expr);
+      }" threw object "TypeError: Error creating RTCPeerConnection" that is not a DOMException InvalidAccessError: property "code" is equal to undefined, expected 15
+FAIL new RTCPeerConnection({ iceServers: [{ urls: "relative-url" }] }) assert_throws: function "function () {
+        eval(expr);
+      }" threw object "TypeError: Error creating RTCPeerConnection" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
+FAIL new RTCPeerConnection({ iceServers: [{ urls: "http://example.com" }] }) assert_throws: function "function () {
+        eval(expr);
+      }" threw object "TypeError: Error creating RTCPeerConnection" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
+FAIL new RTCPeerConnection({ iceServers: [{ urls: [], credentialType: "password" }] }) Error creating RTCPeerConnection
+FAIL new RTCPeerConnection({ iceServers: [{ urls: [], credentialType: "token" }] }) Error creating RTCPeerConnection
+PASS new RTCPeerConnection({ iceServers: [{ urls: [], credentialType: "invalid" }] }) 
+PASS new RTCPeerConnection({ iceServers: [{ url: "stun:stun1.example.net" }] }) 
+PASS new RTCPeerConnection({ iceTransportPolicy: null }) 
+FAIL new RTCPeerConnection({ iceTransportPolicy: undefined }) Invalid RTCPeerConnection constructor arguments
+FAIL new RTCPeerConnection({ iceTransportPolicy: "relay" }) Invalid RTCPeerConnection constructor arguments
+FAIL new RTCPeerConnection({ iceTransportPolicy: "all" }) Invalid RTCPeerConnection constructor arguments
+PASS new RTCPeerConnection({ iceTransportPolicy: "invalid" }) 
+PASS new RTCPeerConnection({ iceTransportPolicy: "none" }) 
+FAIL new RTCPeerConnection({ iceTransports: "invalid" }) Invalid RTCPeerConnection constructor arguments
+FAIL new RTCPeerConnection({ iceTransports: "none" }) Invalid RTCPeerConnection constructor arguments
+PASS new RTCPeerConnection({ bundlePolicy: null }) 
+FAIL new RTCPeerConnection({ bundlePolicy: undefined }) Invalid RTCPeerConnection constructor arguments
+FAIL new RTCPeerConnection({ bundlePolicy: "balanced" }) Invalid RTCPeerConnection constructor arguments
+FAIL new RTCPeerConnection({ bundlePolicy: "max-compat" }) Invalid RTCPeerConnection constructor arguments
+FAIL new RTCPeerConnection({ bundlePolicy: "max-bundle" }) Invalid RTCPeerConnection constructor arguments
+PASS new RTCPeerConnection({ bundlePolicy: "invalid" }) 
+PASS new RTCPeerConnection({ rtcpMuxPolicy: null }) 
+FAIL new RTCPeerConnection({ rtcpMuxPolicy: undefined }) Invalid RTCPeerConnection constructor arguments
+FAIL new RTCPeerConnection({ rtcpMuxPolicy: "negotiate" }) Invalid RTCPeerConnection constructor arguments
+FAIL new RTCPeerConnection({ rtcpMuxPolicy: "require" }) Invalid RTCPeerConnection constructor arguments
+PASS new RTCPeerConnection({ rtcpMuxPolicy: "invalid" }) 
+FAIL new RTCPeerConnection({ peerIdentity: toStringThrows }) assert_throws: function "function () {
+        eval(expr);
+      }" threw object "TypeError: Invalid RTCPeerConnection constructor arguments" ("TypeError") expected object "Error" ("Error")
+PASS new RTCPeerConnection({ certificates: null }) 
+FAIL new RTCPeerConnection({ certificates: undefined }) Invalid RTCPeerConnection constructor arguments
+FAIL new RTCPeerConnection({ certificates: [] }) Invalid RTCPeerConnection constructor arguments
+PASS new RTCPeerConnection({ certificates: [null] }) 
+PASS new RTCPeerConnection({ certificates: [undefined] }) 
+PASS new RTCPeerConnection({ iceCandidatePoolSize: toNumberThrows }) 
+FAIL new RTCPeerConnection({ certificates: [certificate] }) RTCPeerConnection.generateCertificate is not a function. (In 'RTCPeerConnection.generateCertificate({ name: "ECDSA", namedCurve: "P-256" })', 'RTCPeerConnection.generateCertificate' is undefined)
+FAIL new RTCPeerConnection({ certificates: [expiredCertificate] }) RTCPeerConnection.generateCertificate is not a function. (In 'RTCPeerConnection.generateCertificate({ name: "ECDSA", namedCurve: "P-256", expires: 0 })', 'RTCPeerConnection.generateCertificate' is undefined)
+FAIL localDescription initial value Not enough arguments
+FAIL currentLocalDescription initial value Not enough arguments
+FAIL pendingLocalDescription initial value Not enough arguments
+FAIL remoteDescription initial value Not enough arguments
+FAIL currentRemoteDescription initial value Not enough arguments
+FAIL pendingRemoteDescription initial value Not enough arguments
+FAIL signalingState initial value Not enough arguments
+FAIL iceGatheringState initial value Not enough arguments
+FAIL iceConnectionState initial value Not enough arguments
+FAIL connectionState initial value Not enough arguments
+FAIL canTrickleIceCandidates initial value Not enough arguments
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt
new file mode 100644 (file)
index 0000000..ab12d28
--- /dev/null
@@ -0,0 +1,9 @@
+CONSOLE MESSAGE: line 100: TypeError: RTCPeerConnection argument must be a valid Dictionary
+Description
+
+This test verifies the availability of the RTCPeerConnection interface.
+
+
+Harness Error (FAIL), message = TypeError: RTCPeerConnection argument must be a valid Dictionary
+
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/webrtc/simplecall-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/webrtc/simplecall-expected.txt
new file mode 100644 (file)
index 0000000..f1c3628
--- /dev/null
@@ -0,0 +1,6 @@
+The feature(s) tested here are known to have been made available via vendor prefixes; you can run this test with vendor prefixes enabled.
+
+FAIL Can set up a basic WebRTC call. navigator.getUserMedia is not a function. (In 'navigator.getUserMedia({ video: true, audio: true },
+        getUserMediaOkCallback,
+        failed('getUserMedia'))', 'navigator.getUserMedia' is undefined)
+  
index 53f4442..d832820 100644 (file)
@@ -2824,3 +2824,6 @@ webkit.org/b/164022 media/media-source [ Skip ]
 
 # Skip media test for a while because EFL layout test has been blocked.
 media [ Skip ]
+
+# webrtc not supported
+imported/w3c/web-platform-tests/webrtc [ Skip ]
index d5ae893..8a9f6ce 100644 (file)
@@ -1043,6 +1043,11 @@ PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').hasOwnProperty('
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').value is RTCPeerConnection
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').value is RTCRtpReceiver
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').hasOwnProperty('set') is false
@@ -2213,11 +2218,6 @@ PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').hasOwn
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').value is webkitRTCPeerConnection
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').value is webkitURL
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('set') is false
index 79a4fa7..c4298e9 100644 (file)
@@ -1203,6 +1203,11 @@ PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').hasOwnProperty('
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').value is RTCPeerConnection
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').value is RTCRtpReceiver
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').hasOwnProperty('set') is false
@@ -2438,11 +2443,6 @@ PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').hasOwn
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').value is webkitRTCPeerConnection
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').value is webkitURL
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('set') is false
index 951fe34..184b170 100644 (file)
@@ -1203,6 +1203,11 @@ PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').hasOwnProperty('
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').value is RTCPeerConnection
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').value is RTCRtpReceiver
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').hasOwnProperty('set') is false
@@ -2503,11 +2508,6 @@ PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').hasOwn
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').value is webkitRTCPeerConnection
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').value is webkitURL
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('set') is false
index 3ee0ed7..ca4dba4 100644 (file)
@@ -1223,6 +1223,11 @@ PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').hasOwnProperty('
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').value is RTCPeerConnection
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').value is RTCRtpReceiver
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').hasOwnProperty('set') is false
@@ -2523,11 +2528,6 @@ PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').hasOwn
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').value is webkitRTCPeerConnection
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').value is webkitURL
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('set') is false
index 679d10f..f30365a 100644 (file)
@@ -1223,6 +1223,11 @@ PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').hasOwnProperty('
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCIceCandidate').configurable is true
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').value is RTCPeerConnection
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').hasOwnProperty('get') is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').hasOwnProperty('set') is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').enumerable is false
+PASS Object.getOwnPropertyDescriptor(global, 'RTCPeerConnection').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').value is RTCRtpReceiver
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'RTCRtpReceiver').hasOwnProperty('set') is false
@@ -2528,11 +2533,6 @@ PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').hasOwn
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').hasOwnProperty('set') is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').enumerable is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitOfflineAudioContext').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').value is webkitRTCPeerConnection
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'webkitRTCPeerConnection').configurable is true
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').value is webkitURL
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('get') is false
 PASS Object.getOwnPropertyDescriptor(global, 'webkitURL').hasOwnProperty('set') is false
index 549419f..0266b21 100644 (file)
@@ -3625,3 +3625,6 @@ webkit.org/b/162415 imported/w3c/web-platform-tests/html/syntax [ Skip ]
 
 # Only Mac has implemented DictionaryLookup
 fast/layers/prevent-hit-test-during-layout.html [ Skip ]
+
+# webrtc not supported
+imported/w3c/web-platform-tests/webrtc [ Skip ]
index bb6ced3..af05298 100644 (file)
@@ -1,3 +1,14 @@
+2016-10-28  Youenn Fablet  <youenn@apple.com>
+
+        Expose RTCPeerConnection unprefixed
+        https://bugs.webkit.org/show_bug.cgi?id=164060
+
+        Reviewed by Darin Adler.
+
+        Covered by rebased and activated tests.
+
+        * Modules/mediastream/RTCPeerConnection.idl:
+
 2016-10-28  Dave Hyatt  <hyatt@apple.com>
 
         [CSS Parser] Support the marquee properties
index e5ce1d1..093d3cf 100644 (file)
@@ -36,7 +36,6 @@
     ConstructorCallWith=ScriptExecutionContext,
     ExportMacro=WEBCORE_EXPORT,
     JSBuiltinConstructor,
-    InterfaceName=webkitRTCPeerConnection,
 ] interface RTCPeerConnection : EventTarget {
     // Private initializer
     [PrivateIdentifier, CallWith=Document, MayThrowLegacyException] void initializeWith(Dictionary parameters);