Index: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection.html |
diff --git a/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection.html b/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection.html |
index 577fd443165ba3e2aaa715570e35e5deccdc8925..a509089c2a91ab39d2639e4cab9f33ece25b0b64 100644 |
--- a/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection.html |
+++ b/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection.html |
@@ -9,7 +9,8 @@ description("Tests the RTCPeerConnection constructor."); |
shouldNotThrow("new webkitRTCPeerConnection(null);"); |
shouldNotThrow("new webkitRTCPeerConnection(undefined);"); |
-shouldThrow("new webkitRTCPeerConnection();"); |
+shouldNotThrow("new webkitRTCPeerConnection({});"); |
+shouldNotThrow("new webkitRTCPeerConnection();"); |
shouldThrow("new webkitRTCPeerConnection('');"); |
shouldNotThrow("new webkitRTCPeerConnection({iceServers:[]});"); |
@@ -19,7 +20,7 @@ shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{url:'turn:foo.com', cr |
shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]});"); |
shouldNotThrow("new webkitRTCPeerConnection({iceServers:[{urls:['stun:foo.com', 'turn:foo.com']}]});"); |
-shouldThrow("new webkitRTCPeerConnection({fooServers:[]});"); |
+shouldNotThrow("new webkitRTCPeerConnection({fooServers:[]});"); |
shouldThrow("new webkitRTCPeerConnection({iceServers:true});"); |
shouldThrow("new webkitRTCPeerConnection({iceServers:[1, 2, 3]});"); |
shouldThrow("new webkitRTCPeerConnection({iceServers:[{}]});"); |
@@ -60,6 +61,7 @@ shouldThrow("new webkitRTCPeerConnection(null, {valid_and_supported_2:1, mandato |
// Construct with certificates. |
shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], certificates:null});"); |
+shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], certificates:undefined});"); |
shouldNotThrow("new webkitRTCPeerConnection({iceServers:[], certificates:[]});"); |
shouldThrow("new webkitRTCPeerConnection({iceServers:[], certificates:[null]});"); |
shouldThrow("new webkitRTCPeerConnection({iceServers:[], certificates:[1337]});"); |