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

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

Issue 2450803002: Expose unprefixed RTCPeerConnection (Closed)
Patch Set: Update webrtc_track_peerconnections.js Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 This is a testharness.js-based test. 1 This is a testharness.js-based test.
2 FAIL RTCPeerConnection.length RTCPeerConnection is not defined 2 PASS RTCPeerConnection.length
3 FAIL new RTCPeerConnection() RTCPeerConnection is not defined 3 PASS new RTCPeerConnection()
4 FAIL new RTCPeerConnection(null) RTCPeerConnection is not defined 4 PASS new RTCPeerConnection(null)
5 FAIL new RTCPeerConnection(undefined) RTCPeerConnection is not defined 5 PASS new RTCPeerConnection(undefined)
6 FAIL new RTCPeerConnection({}) RTCPeerConnection is not defined 6 PASS new RTCPeerConnection({})
7 FAIL new RTCPeerConnection({ iceServers: null }) assert_throws: function "functi on () { 7 PASS new RTCPeerConnection({ iceServers: null })
8 eval(expr); 8 PASS new RTCPeerConnection({ iceServers: undefined })
9 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError") 9 PASS new RTCPeerConnection({ iceServers: [] })
10 FAIL new RTCPeerConnection({ iceServers: undefined }) RTCPeerConnection is not d efined 10 PASS new RTCPeerConnection({ iceServers: [{}] })
11 FAIL new RTCPeerConnection({ iceServers: [] }) RTCPeerConnection is not defined 11 PASS new RTCPeerConnection({ iceServers: [null] })
12 FAIL new RTCPeerConnection({ iceServers: [{}] }) assert_throws: function "functi on () { 12 PASS new RTCPeerConnection({ iceServers: [undefined] })
13 eval(expr); 13 PASS new RTCPeerConnection({ iceServers: [{ urls: "stun:stun1.example.net" }] })
14 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError") 14 PASS new RTCPeerConnection({ iceServers: [{ urls: [] }] })
15 FAIL new RTCPeerConnection({ iceServers: [null] }) assert_throws: function "func tion () { 15 PASS new RTCPeerConnection({ iceServers: [{ urls: ["stun:stun1.example.net"] }] })
16 eval(expr); 16 PASS new RTCPeerConnection({ iceServers: [{ urls: ["stun:stun1.example.net", "st un:stun2.example.net"] }] })
17 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError") 17 PASS new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", user name: "user", credential: "cred" }] })
18 FAIL new RTCPeerConnection({ iceServers: [undefined] }) assert_throws: function "function () { 18 PASS new RTCPeerConnection({ iceServers: [{ urls: "turn:turn.example.net", usern ame: "user", credential: "cred" }] })
19 eval(expr); 19 PASS new RTCPeerConnection({ iceServers: [{ urls: ["turns:turn.example.org", "tu rn:turn.example.net"], username: "user", credential: "cred" }] })
20 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError") 20 PASS new RTCPeerConnection({ iceServers: [{ urls: "stun:stun1.example.net", cred entialType: "password" }] })
21 FAIL new RTCPeerConnection({ iceServers: [{ urls: "stun:stun1.example.net" }] }) RTCPeerConnection is not defined 21 PASS new RTCPeerConnection({ iceServers: [{ urls: "stun:stun1.example.net", cred entialType: "token" }] })
22 FAIL new RTCPeerConnection({ iceServers: [{ urls: [] }] }) RTCPeerConnection is not defined
23 FAIL new RTCPeerConnection({ iceServers: [{ urls: ["stun:stun1.example.net"] }] }) RTCPeerConnection is not defined
24 FAIL new RTCPeerConnection({ iceServers: [{ urls: ["stun:stun1.example.net", "st un:stun2.example.net"] }] }) RTCPeerConnection is not defined
25 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", user name: "user", credential: "cred" }] }) RTCPeerConnection is not defined
26 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turn:turn.example.net", usern ame: "user", credential: "cred" }] }) RTCPeerConnection is not defined
27 FAIL new RTCPeerConnection({ iceServers: [{ urls: ["turns:turn.example.org", "tu rn:turn.example.net"], username: "user", credential: "cred" }] }) RTCPeerConnect ion is not defined
28 FAIL new RTCPeerConnection({ iceServers: [{ urls: "stun:stun1.example.net", cred entialType: "password" }] }) RTCPeerConnection is not defined
29 FAIL new RTCPeerConnection({ iceServers: [{ urls: "stun:stun1.example.net", cred entialType: "token" }] }) RTCPeerConnection is not defined
30 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turn:turn.example.net" }] }) assert_throws: function "function () { 22 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turn:turn.example.net" }] }) assert_throws: function "function () {
31 eval(expr); 23 eval(expr);
32 }" threw object "ReferenceError: RTCPeerConnection is not defined" that is not a DOMException InvalidAccessError: property "code" is equal to undefined, e xpected 15 24 }" did not throw
33 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turn:turn.example.net", usern ame: "user" }] }) assert_throws: function "function () { 25 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turn:turn.example.net", usern ame: "user" }] }) assert_throws: function "function () {
34 eval(expr); 26 eval(expr);
35 }" threw object "ReferenceError: RTCPeerConnection is not defined" that is not a DOMException InvalidAccessError: property "code" is equal to undefined, e xpected 15 27 }" did not throw
36 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turn:turn.example.net", crede ntial: "cred" }] }) assert_throws: function "function () { 28 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turn:turn.example.net", crede ntial: "cred" }] }) assert_throws: function "function () {
37 eval(expr); 29 eval(expr);
38 }" threw object "ReferenceError: RTCPeerConnection is not defined" that is not a DOMException InvalidAccessError: property "code" is equal to undefined, e xpected 15 30 }" did not throw
39 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org" }] }) assert_throws: function "function () { 31 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org" }] }) assert_throws: function "function () {
40 eval(expr); 32 eval(expr);
41 }" threw object "ReferenceError: RTCPeerConnection is not defined" that is not a DOMException InvalidAccessError: property "code" is equal to undefined, e xpected 15 33 }" did not throw
42 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", user name: "user" }] }) assert_throws: function "function () { 34 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", user name: "user" }] }) assert_throws: function "function () {
43 eval(expr); 35 eval(expr);
44 }" threw object "ReferenceError: RTCPeerConnection is not defined" that is not a DOMException InvalidAccessError: property "code" is equal to undefined, e xpected 15 36 }" did not throw
45 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", cred ential: "cred" }] }) assert_throws: function "function () { 37 FAIL new RTCPeerConnection({ iceServers: [{ urls: "turns:turn.example.org", cred ential: "cred" }] }) assert_throws: function "function () {
46 eval(expr); 38 eval(expr);
47 }" threw object "ReferenceError: RTCPeerConnection is not defined" that is not a DOMException InvalidAccessError: property "code" is equal to undefined, e xpected 15 39 }" did not throw
48 FAIL new RTCPeerConnection({ iceServers: [{ urls: "relative-url" }] }) assert_th rows: function "function () { 40 FAIL new RTCPeerConnection({ iceServers: [{ urls: "relative-url" }] }) assert_th rows: function "function () {
49 eval(expr); 41 eval(expr);
50 }" threw object "ReferenceError: RTCPeerConnection is not defined" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12 42 }" threw object "TypeError: Failed to construct 'RTCPeerConnection': Malfo rmed URL" that is not a DOMException SyntaxError: property "code" is equal to un defined, expected 12
51 FAIL new RTCPeerConnection({ iceServers: [{ urls: "http://example.com" }] }) ass ert_throws: function "function () { 43 FAIL new RTCPeerConnection({ iceServers: [{ urls: "http://example.com" }] }) ass ert_throws: function "function () {
52 eval(expr); 44 eval(expr);
53 }" threw object "ReferenceError: RTCPeerConnection is not defined" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12 45 }" threw object "TypeError: Failed to construct 'RTCPeerConnection': Malfo rmed URL" that is not a DOMException SyntaxError: property "code" is equal to un defined, expected 12
54 FAIL new RTCPeerConnection({ iceServers: [{ urls: [], credentialType: "password" }] }) RTCPeerConnection is not defined 46 PASS new RTCPeerConnection({ iceServers: [{ urls: [], credentialType: "password" }] })
55 FAIL new RTCPeerConnection({ iceServers: [{ urls: [], credentialType: "token" }] }) RTCPeerConnection is not defined 47 PASS new RTCPeerConnection({ iceServers: [{ urls: [], credentialType: "token" }] })
56 FAIL new RTCPeerConnection({ iceServers: [{ urls: [], credentialType: "invalid" }] }) assert_throws: function "function () { 48 FAIL new RTCPeerConnection({ iceServers: [{ urls: [], credentialType: "invalid" }] }) assert_throws: function "function () {
57 eval(expr); 49 eval(expr);
58 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError") 50 }" did not throw
59 FAIL new RTCPeerConnection({ iceServers: [{ url: "stun:stun1.example.net" }] }) assert_throws: function "function () { 51 FAIL new RTCPeerConnection({ iceServers: [{ url: "stun:stun1.example.net" }] }) assert_throws: function "function () {
60 eval(expr); 52 eval(expr);
61 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError") 53 }" did not throw
62 FAIL new RTCPeerConnection({ iceTransportPolicy: null }) assert_throws: function "function () { 54 FAIL new RTCPeerConnection({ iceTransportPolicy: null }) assert_throws: function "function () {
63 eval(expr); 55 eval(expr);
64 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError") 56 }" did not throw
65 FAIL new RTCPeerConnection({ iceTransportPolicy: undefined }) RTCPeerConnection is not defined 57 PASS new RTCPeerConnection({ iceTransportPolicy: undefined })
66 FAIL new RTCPeerConnection({ iceTransportPolicy: "relay" }) RTCPeerConnection is not defined 58 PASS new RTCPeerConnection({ iceTransportPolicy: "relay" })
67 FAIL new RTCPeerConnection({ iceTransportPolicy: "all" }) RTCPeerConnection is n ot defined 59 PASS new RTCPeerConnection({ iceTransportPolicy: "all" })
68 FAIL new RTCPeerConnection({ iceTransportPolicy: "invalid" }) assert_throws: fun ction "function () { 60 FAIL new RTCPeerConnection({ iceTransportPolicy: "invalid" }) assert_throws: fun ction "function () {
69 eval(expr); 61 eval(expr);
70 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError") 62 }" did not throw
71 FAIL new RTCPeerConnection({ iceTransportPolicy: "none" }) assert_throws: functi on "function () { 63 FAIL new RTCPeerConnection({ iceTransportPolicy: "none" }) assert_throws: functi on "function () {
72 eval(expr); 64 eval(expr);
73 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError") 65 }" did not throw
74 FAIL new RTCPeerConnection({ iceTransports: "invalid" }) RTCPeerConnection is no t defined 66 FAIL new RTCPeerConnection({ iceTransports: "invalid" }) Failed to construct 'RT CPeerConnection': The provided value 'invalid' is not a valid enum value of type RTCIceTransports.
75 FAIL new RTCPeerConnection({ iceTransports: "none" }) RTCPeerConnection is not d efined 67 PASS new RTCPeerConnection({ iceTransports: "none" })
76 FAIL new RTCPeerConnection({ bundlePolicy: null }) assert_throws: function "func tion () { 68 PASS new RTCPeerConnection({ bundlePolicy: null })
77 eval(expr); 69 PASS new RTCPeerConnection({ bundlePolicy: undefined })
78 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError") 70 PASS new RTCPeerConnection({ bundlePolicy: "balanced" })
79 FAIL new RTCPeerConnection({ bundlePolicy: undefined }) RTCPeerConnection is not defined 71 PASS new RTCPeerConnection({ bundlePolicy: "max-compat" })
80 FAIL new RTCPeerConnection({ bundlePolicy: "balanced" }) RTCPeerConnection is no t defined 72 PASS new RTCPeerConnection({ bundlePolicy: "max-bundle" })
81 FAIL new RTCPeerConnection({ bundlePolicy: "max-compat" }) RTCPeerConnection is not defined 73 PASS new RTCPeerConnection({ bundlePolicy: "invalid" })
82 FAIL new RTCPeerConnection({ bundlePolicy: "max-bundle" }) RTCPeerConnection is not defined 74 PASS new RTCPeerConnection({ rtcpMuxPolicy: null })
83 FAIL new RTCPeerConnection({ bundlePolicy: "invalid" }) assert_throws: function "function () { 75 PASS new RTCPeerConnection({ rtcpMuxPolicy: undefined })
84 eval(expr); 76 PASS new RTCPeerConnection({ rtcpMuxPolicy: "negotiate" })
85 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError") 77 PASS new RTCPeerConnection({ rtcpMuxPolicy: "require" })
86 FAIL new RTCPeerConnection({ rtcpMuxPolicy: null }) assert_throws: function "fun ction () { 78 PASS new RTCPeerConnection({ rtcpMuxPolicy: "invalid" })
87 eval(expr);
88 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError")
89 FAIL new RTCPeerConnection({ rtcpMuxPolicy: undefined }) RTCPeerConnection is no t defined
90 FAIL new RTCPeerConnection({ rtcpMuxPolicy: "negotiate" }) RTCPeerConnection is not defined
91 FAIL new RTCPeerConnection({ rtcpMuxPolicy: "require" }) RTCPeerConnection is no t defined
92 FAIL new RTCPeerConnection({ rtcpMuxPolicy: "invalid" }) assert_throws: function "function () {
93 eval(expr);
94 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError")
95 FAIL new RTCPeerConnection({ peerIdentity: toStringThrows }) assert_throws: func tion "function () { 79 FAIL new RTCPeerConnection({ peerIdentity: toStringThrows }) assert_throws: func tion "function () {
96 eval(expr); 80 eval(expr);
97 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "Error" ("Error") 81 }" did not throw
98 FAIL new RTCPeerConnection({ certificates: null }) assert_throws: function "func tion () { 82 FAIL new RTCPeerConnection({ certificates: null }) assert_throws: function "func tion () {
99 eval(expr); 83 eval(expr);
100 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError") 84 }" did not throw
101 FAIL new RTCPeerConnection({ certificates: undefined }) RTCPeerConnection is not defined 85 PASS new RTCPeerConnection({ certificates: undefined })
102 FAIL new RTCPeerConnection({ certificates: [] }) RTCPeerConnection is not define d 86 PASS new RTCPeerConnection({ certificates: [] })
103 FAIL new RTCPeerConnection({ certificates: [null] }) assert_throws: function "fu nction () { 87 PASS new RTCPeerConnection({ certificates: [null] })
104 eval(expr); 88 PASS new RTCPeerConnection({ certificates: [undefined] })
105 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError")
106 FAIL new RTCPeerConnection({ certificates: [undefined] }) assert_throws: functio n "function () {
107 eval(expr);
108 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError")
109 FAIL new RTCPeerConnection({ iceCandidatePoolSize: toNumberThrows }) assert_thro ws: function "function () { 89 FAIL new RTCPeerConnection({ iceCandidatePoolSize: toNumberThrows }) assert_thro ws: function "function () {
110 eval(expr); 90 eval(expr);
111 }" threw object "ReferenceError: RTCPeerConnection is not defined" ("Refer enceError") expected object "TypeError" ("TypeError") 91 }" did not throw
112 FAIL new RTCPeerConnection({ certificates: [certificate] }) RTCPeerConnection is not defined 92 PASS new RTCPeerConnection({ certificates: [certificate] })
113 FAIL new RTCPeerConnection({ certificates: [expiredCertificate] }) RTCPeerConnec tion is not defined 93 FAIL new RTCPeerConnection({ certificates: [expiredCertificate] }) assert_throws : function "function () {
114 FAIL localDescription initial value RTCPeerConnection is not defined 94 new RTCPeerConnection({ certificates: [certificate] });
115 FAIL currentLocalDescription initial value RTCPeerConnection is not defined 95 }" threw object "InvalidStateError: Failed to construct 'RTCPeerConnecti on': Expired certificate(s)." that is not a DOMException InvalidAccessError: pro perty "code" is equal to 11, expected 15
116 FAIL pendingLocalDescription initial value RTCPeerConnection is not defined 96 PASS localDescription initial value
117 FAIL remoteDescription initial value RTCPeerConnection is not defined 97 FAIL currentLocalDescription initial value assert_equals: expected (object) null but got (undefined) undefined
118 FAIL currentRemoteDescription initial value RTCPeerConnection is not defined 98 FAIL pendingLocalDescription initial value assert_equals: expected (object) null but got (undefined) undefined
119 FAIL pendingRemoteDescription initial value RTCPeerConnection is not defined 99 PASS remoteDescription initial value
120 FAIL signalingState initial value RTCPeerConnection is not defined 100 FAIL currentRemoteDescription initial value assert_equals: expected (object) nul l but got (undefined) undefined
121 FAIL iceGatheringState initial value RTCPeerConnection is not defined 101 FAIL pendingRemoteDescription initial value assert_equals: expected (object) nul l but got (undefined) undefined
122 FAIL iceConnectionState initial value RTCPeerConnection is not defined 102 PASS signalingState initial value
123 FAIL connectionState initial value RTCPeerConnection is not defined 103 PASS iceGatheringState initial value
124 FAIL canTrickleIceCandidates initial value RTCPeerConnection is not defined 104 PASS iceConnectionState initial value
105 FAIL connectionState initial value assert_equals: expected (string) "new" but go t (undefined) undefined
106 FAIL canTrickleIceCandidates initial value assert_equals: expected (object) null but got (undefined) undefined
125 Harness: the test ran to completion. 107 Harness: the test ran to completion.
126 108
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698