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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-expected.txt

Issue 2448843003: Throw SyntaxError for non-turn/turns/stun URLs (Closed)
Patch Set: split valid and scheme checks 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 CONSOLE WARNING: line 1: Unknown constraint named invalid rejected 1 CONSOLE WARNING: line 1: Unknown constraint named invalid rejected
2 CONSOLE WARNING: line 1: Unknown constraint named valid_but_unsupported_1 reject ed 2 CONSOLE WARNING: line 1: Unknown constraint named valid_but_unsupported_1 reject ed
3 CONSOLE WARNING: line 1: Unknown constraint named valid_but_unsupported_1 reject ed 3 CONSOLE WARNING: line 1: Unknown constraint named valid_but_unsupported_1 reject ed
4 Tests the RTCPeerConnection constructor. 4 Tests the RTCPeerConnection constructor.
5 5
6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
7 7
8 8
9 PASS webkitRTCPeerConnection is RTCPeerConnection 9 PASS webkitRTCPeerConnection is RTCPeerConnection
10 PASS new RTCPeerConnection(null); did not throw exception. 10 PASS new RTCPeerConnection(null); did not throw exception.
11 PASS new RTCPeerConnection(undefined); did not throw exception. 11 PASS new RTCPeerConnection(undefined); did not throw exception.
12 PASS new RTCPeerConnection({}); did not throw exception. 12 PASS new RTCPeerConnection({}); did not throw exception.
13 PASS new RTCPeerConnection(); did not throw exception. 13 PASS new RTCPeerConnection(); did not throw exception.
14 PASS new RTCPeerConnection(''); threw exception TypeError: Failed to construct ' RTCPeerConnection': parameter 1 ('configuration') is not an object.. 14 PASS new RTCPeerConnection(''); threw exception TypeError: Failed to construct ' RTCPeerConnection': parameter 1 ('configuration') is not an object..
15 PASS new RTCPeerConnection({iceServers:[]}); did not throw exception. 15 PASS new RTCPeerConnection({iceServers:[]}); did not throw exception.
16 PASS new RTCPeerConnection({iceServers:[{url:'stun:foo.com'}]}); did not throw e xception. 16 PASS new RTCPeerConnection({iceServers:[{url:'stun:foo.com'}]}); did not throw e xception.
17 PASS new RTCPeerConnection({iceServers:[{url:'turn:foo.com', credential:'x'}]}); did not throw exception. 17 PASS new RTCPeerConnection({iceServers:[{url:'turn:foo.com', credential:'x'}]}); did not throw exception.
18 PASS new RTCPeerConnection({iceServers:[{url:'turn:foo.com', credential:'x'},{ur l:'stun:bar.com'}]}); did not throw exception. 18 PASS new RTCPeerConnection({iceServers:[{url:'turn:foo.com', credential:'x'},{ur l:'stun:bar.com'}]}); did not throw exception.
19 PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}); did not throw exception. 19 PASS new RTCPeerConnection({iceServers:[{urls:'stun:foo.com'}]}); did not throw exception.
20 PASS new RTCPeerConnection({iceServers:[{urls:['stun:foo.com', 'turn:foo.com']}] }); did not throw exception. 20 PASS new RTCPeerConnection({iceServers:[{urls:['stun:foo.com', 'turn:foo.com']}] }); did not throw exception.
21 PASS new RTCPeerConnection({fooServers:[]}); did not throw exception. 21 PASS new RTCPeerConnection({fooServers:[]}); did not throw exception.
22 PASS new RTCPeerConnection({iceServers:true}); threw exception TypeError: Failed to construct 'RTCPeerConnection': The value provided is neither an array, nor d oes it have indexed properties.. 22 PASS new RTCPeerConnection({iceServers:true}); threw exception TypeError: Failed to construct 'RTCPeerConnection': The value provided is neither an array, nor d oes it have indexed properties..
23 PASS new RTCPeerConnection({iceServers:[1, 2, 3]}); threw exception TypeError: F ailed to construct 'RTCPeerConnection': cannot convert to dictionary.. 23 PASS new RTCPeerConnection({iceServers:[1, 2, 3]}); threw exception TypeError: F ailed to construct 'RTCPeerConnection': cannot convert to dictionary..
24 PASS new RTCPeerConnection({iceServers:[{}]}); threw exception TypeError: Failed to construct 'RTCPeerConnection': Malformed RTCIceServer. 24 PASS new RTCPeerConnection({iceServers:[{}]}); threw exception TypeError: Failed to construct 'RTCPeerConnection': Malformed RTCIceServer.
25 PASS new RTCPeerConnection({iceServers:[{url:'foo'}]}); threw exception TypeErro r: Failed to construct 'RTCPeerConnection': Malformed URL. 25 PASS new RTCPeerConnection({iceServers:[{url:'foo'}]}); threw exception SyntaxEr ror: Failed to construct 'RTCPeerConnection': 'foo' is not a valid URL..
26 PASS new RTCPeerConnection({iceServers:[{urls:[1, 'turn:foo.com']}]}); threw exc eption TypeError: Failed to construct 'RTCPeerConnection': Malformed URL. 26 PASS new RTCPeerConnection({iceServers:[{urls:'unsupported:scheme'}]}); threw ex ception SyntaxError: Failed to construct 'RTCPeerConnection': 'unsupported' is n ot one of the supported URL schemes 'stun', 'turn' or 'turns'..
27 PASS new RTCPeerConnection({iceServers:[{urls:[1, 'turn:foo.com']}]}); threw exc eption SyntaxError: Failed to construct 'RTCPeerConnection': '1' is not a valid URL..
27 PASS new RTCPeerConnection({iceServers:[], iceTransports:'none'}); did not throw exception. 28 PASS new RTCPeerConnection({iceServers:[], iceTransports:'none'}); did not throw exception.
28 PASS new RTCPeerConnection({iceServers:[], iceTransports:'relay'}); did not thro w exception. 29 PASS new RTCPeerConnection({iceServers:[], iceTransports:'relay'}); did not thro w exception.
29 PASS new RTCPeerConnection({iceServers:[], iceTransports:'all'}); did not throw exception. 30 PASS new RTCPeerConnection({iceServers:[], iceTransports:'all'}); did not throw exception.
30 PASS new RTCPeerConnection({iceServers:[], iceTransports:'foo'}); threw exceptio n TypeError: Failed to construct 'RTCPeerConnection': The provided value 'foo' i s not a valid enum value of type RTCIceTransportPolicy.. 31 PASS new RTCPeerConnection({iceServers:[], iceTransports:'foo'}); threw exceptio n TypeError: Failed to construct 'RTCPeerConnection': The provided value 'foo' i s not a valid enum value of type RTCIceTransportPolicy..
31 PASS new RTCPeerConnection({iceServers:[], bundlePolicy:'balanced'}); did not th row exception. 32 PASS new RTCPeerConnection({iceServers:[], bundlePolicy:'balanced'}); did not th row exception.
32 PASS new RTCPeerConnection({iceServers:[], bundlePolicy:'max-bundle'}); did not throw exception. 33 PASS new RTCPeerConnection({iceServers:[], bundlePolicy:'max-bundle'}); did not throw exception.
33 PASS new RTCPeerConnection({iceServers:[], bundlePolicy:'max-compat'}); did not throw exception. 34 PASS new RTCPeerConnection({iceServers:[], bundlePolicy:'max-compat'}); did not throw exception.
34 PASS new RTCPeerConnection({iceServers:[], bundlePolicy:'foo'}); threw exception TypeError: Failed to construct 'RTCPeerConnection': The provided value 'foo' is not a valid enum value of type RTCBundlePolicy.. 35 PASS new RTCPeerConnection({iceServers:[], bundlePolicy:'foo'}); threw exception TypeError: Failed to construct 'RTCPeerConnection': The provided value 'foo' is not a valid enum value of type RTCBundlePolicy..
35 PASS new RTCPeerConnection({iceServers:[], rtcpMuxPolicy:'negotiate'}); did not throw exception. 36 PASS new RTCPeerConnection({iceServers:[], rtcpMuxPolicy:'negotiate'}); did not throw exception.
36 PASS new RTCPeerConnection({iceServers:[], rtcpMuxPolicy:'require'}); did not th row exception. 37 PASS new RTCPeerConnection({iceServers:[], rtcpMuxPolicy:'require'}); did not th row exception.
(...skipping 19 matching lines...) Expand all
56 PASS new RTCPeerConnection({iceServers:[], certificates:[null]}); threw exceptio n TypeError: Failed to construct 'RTCPeerConnection': Invalid Array element type . 57 PASS new RTCPeerConnection({iceServers:[], certificates:[null]}); threw exceptio n TypeError: Failed to construct 'RTCPeerConnection': Invalid Array element type .
57 PASS new RTCPeerConnection({iceServers:[], certificates:[1337]}); threw exceptio n TypeError: Failed to construct 'RTCPeerConnection': Invalid Array element type . 58 PASS new RTCPeerConnection({iceServers:[], certificates:[1337]}); threw exceptio n TypeError: Failed to construct 'RTCPeerConnection': Invalid Array element type .
58 PASS new RTCPeerConnection({iceServers:[], certificates:[certRSA]}, null); did n ot throw exception. 59 PASS new RTCPeerConnection({iceServers:[], certificates:[certRSA]}, null); did n ot throw exception.
59 PASS new RTCPeerConnection({iceServers:[], certificates:[certECDSA]}, null); did not throw exception. 60 PASS new RTCPeerConnection({iceServers:[], certificates:[certECDSA]}, null); did not throw exception.
60 PASS certExpired.expires <= new Date().getTime() is true 61 PASS certExpired.expires <= new Date().getTime() is true
61 PASS new RTCPeerConnection({iceServers:[], certificates:[certExpired]}, null); t hrew exception InvalidAccessError: Failed to construct 'RTCPeerConnection': Expi red certificate(s).. 62 PASS new RTCPeerConnection({iceServers:[], certificates:[certExpired]}, null); t hrew exception InvalidAccessError: Failed to construct 'RTCPeerConnection': Expi red certificate(s)..
62 PASS successfullyParsed is true 63 PASS successfullyParsed is true
63 64
64 TEST COMPLETE 65 TEST COMPLETE
65 66
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698