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

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

Issue 2468053002: Import wpt@9fcccf38b6be00f71ffa6bd6e29c5aa1ef25ee8c (Closed)
Patch Set: Skip cssom and svg/shapes, remove unwanted baseline 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 <!doctype html> 1 <!doctype html>
2 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>RTCPeerConnection constructor</title> 3 <title>RTCPeerConnection constructor</title>
4 <script src=/resources/testharness.js></script> 4 <script src=/resources/testharness.js></script>
5 <script src=/resources/testharnessreport.js></script> 5 <script src=/resources/testharnessreport.js></script>
6 <script> 6 <script>
7 test(function() { 7 test(function() {
8 assert_equals(RTCPeerConnection.length, 0); 8 assert_equals(RTCPeerConnection.length, 0);
9 }, 'RTCPeerConnection.length'); 9 }, 'RTCPeerConnection.length');
10 10
(...skipping 19 matching lines...) Expand all
30 '{ iceServers: [{}] }': new TypeError, 30 '{ iceServers: [{}] }': new TypeError,
31 '{ iceServers: [null] }': new TypeError, 31 '{ iceServers: [null] }': new TypeError,
32 '{ iceServers: [undefined] }': new TypeError, 32 '{ iceServers: [undefined] }': new TypeError,
33 '{ iceServers: [{ urls: "stun:stun1.example.net" }] }': false, 33 '{ iceServers: [{ urls: "stun:stun1.example.net" }] }': false,
34 '{ iceServers: [{ urls: [] }] }': false, 34 '{ iceServers: [{ urls: [] }] }': false,
35 '{ iceServers: [{ urls: ["stun:stun1.example.net"] }] }': false, 35 '{ iceServers: [{ urls: ["stun:stun1.example.net"] }] }': false,
36 '{ iceServers: [{ urls: ["stun:stun1.example.net", "stun:stun2.example.net"] } ] }': false, 36 '{ iceServers: [{ urls: ["stun:stun1.example.net", "stun:stun2.example.net"] } ] }': false,
37 // username and password required for turn: and turns: 37 // username and password required for turn: and turns:
38 '{ iceServers: [{ urls: "turns:turn.example.org", username: "user", credential : "cred" }] }': false, 38 '{ iceServers: [{ urls: "turns:turn.example.org", username: "user", credential : "cred" }] }': false,
39 '{ iceServers: [{ urls: "turn:turn.example.net", username: "user", credential: "cred" }] }': false, 39 '{ iceServers: [{ urls: "turn:turn.example.net", username: "user", credential: "cred" }] }': false,
40 '{ iceServers: [{ urls: "turns:turn.example.org", username: "", credential: "" }] }': false,
41 '{ iceServers: [{ urls: "turn:turn.example.net", username: "", credential: "" }] }': false,
40 '{ iceServers: [{ urls: ["turns:turn.example.org", "turn:turn.example.net"], u sername: "user", credential: "cred" }] }': false, 42 '{ iceServers: [{ urls: ["turns:turn.example.org", "turn:turn.example.net"], u sername: "user", credential: "cred" }] }': false,
41 '{ iceServers: [{ urls: "stun:stun1.example.net", credentialType: "password" } ] }': false, 43 '{ iceServers: [{ urls: "stun:stun1.example.net", credentialType: "password" } ] }': false,
42 '{ iceServers: [{ urls: "stun:stun1.example.net", credentialType: "token" }] } ': false, 44 '{ iceServers: [{ urls: "stun:stun1.example.net", credentialType: "token" }] } ': false,
43 '{ iceServers: [{ urls: "turn:turn.example.net" }] }': 'InvalidAccessError', 45 '{ iceServers: [{ urls: "turn:turn.example.net" }] }': 'InvalidAccessError',
44 '{ iceServers: [{ urls: "turn:turn.example.net", username: "user" }] }': 'Inva lidAccessError', 46 '{ iceServers: [{ urls: "turn:turn.example.net", username: "user" }] }': 'Inva lidAccessError',
45 '{ iceServers: [{ urls: "turn:turn.example.net", credential: "cred" }] }': 'In validAccessError', 47 '{ iceServers: [{ urls: "turn:turn.example.net", credential: "cred" }] }': 'In validAccessError',
46 '{ iceServers: [{ urls: "turns:turn.example.org" }] }': 'InvalidAccessError', 48 '{ iceServers: [{ urls: "turns:turn.example.org" }] }': 'InvalidAccessError',
47 '{ iceServers: [{ urls: "turns:turn.example.org", username: "user" }] }': 'Inv alidAccessError', 49 '{ iceServers: [{ urls: "turns:turn.example.org", username: "user" }] }': 'Inv alidAccessError',
48 '{ iceServers: [{ urls: "turns:turn.example.org", credential: "cred" }] }': 'I nvalidAccessError', 50 '{ iceServers: [{ urls: "turns:turn.example.org", credential: "cred" }] }': 'I nvalidAccessError',
49 '{ iceServers: [{ urls: "relative-url" }] }': 'SyntaxError', 51 '{ iceServers: [{ urls: "relative-url" }] }': 'SyntaxError',
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 for (const attr in initialState) { 147 for (const attr in initialState) {
146 test(function() { 148 test(function() {
147 // Use one RTCPeerConnection instance for all initial value tests. 149 // Use one RTCPeerConnection instance for all initial value tests.
148 if (!window.pc) { 150 if (!window.pc) {
149 window.pc = new RTCPeerConnection; 151 window.pc = new RTCPeerConnection;
150 } 152 }
151 assert_equals(pc[attr], initialState[attr]); 153 assert_equals(pc[attr], initialState[attr]);
152 }, attr + ' initial value'); 154 }, attr + ' initial value');
153 } 155 }
154 </script> 156 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698