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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt

Issue 2448843003: Throw SyntaxError for non-turn/turns/stun URLs (Closed)
Patch Set: split valid and scheme checks Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt
index f7191037d1b0571e149e890bd5d93c1c1749e2f5..8ba1f7d62c308bf3b5a899107dbc9b7f84494c12 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt
+++ b/third_party/WebKit/LayoutTests/imported/wpt/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt
@@ -37,12 +37,8 @@ FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", user
FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", credential: "cred" }] }) assert_throws: function "function () {
eval(expr);
}" did not throw
-FAIL new RTCPeerConnection({ iceServers: [{ urls: "relative-url" }] }) assert_throws: function "function () {
- eval(expr);
- }" threw object "TypeError: Failed to construct 'RTCPeerConnection': Malformed URL" 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: Failed to construct 'RTCPeerConnection': Malformed URL" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
+PASS new RTCPeerConnection({ iceServers: [{ urls: "relative-url" }] })
+PASS new RTCPeerConnection({ iceServers: [{ urls: "http://example.com" }] })
PASS new RTCPeerConnection({ iceServers: [{ urls: [], credentialType: "password" }] })
PASS new RTCPeerConnection({ iceServers: [{ urls: [], credentialType: "token" }] })
FAIL new RTCPeerConnection({ iceServers: [{ urls: [], credentialType: "invalid" }] }) assert_throws: function "function () {

Powered by Google App Engine
This is Rietveld 408576698