mirror of
https://github.com/servo/servo.git
synced 2025-09-03 19:48:21 +01:00
Update web-platform-tests to revision 0313d9f383d954ef401e79f3b669a5781aa3441a
This commit is contained in:
parent
aa61200eca
commit
b28a41ac85
55 changed files with 970 additions and 156 deletions
|
@ -83,19 +83,6 @@
|
|||
makePc({ iceServers: [{}] }));
|
||||
}, '{ iceServers: [{}] } should throw TypeError');
|
||||
|
||||
config_test(makePc => {
|
||||
const pc = makePc({ iceServers: [{
|
||||
urls: []
|
||||
}] });
|
||||
|
||||
const { iceServers } = pc.getConfiguration();
|
||||
assert_equals(iceServers.length, 1);
|
||||
|
||||
const server = iceServers[0];
|
||||
assert_array_equals(server.urls, []);
|
||||
assert_equals(server.credentialType, 'password');
|
||||
}, 'with empty list urls should succeed');
|
||||
|
||||
config_test(makePc => {
|
||||
const pc = makePc({ iceServers: [{
|
||||
urls: 'stun:stun1.example.net'
|
||||
|
@ -322,32 +309,11 @@
|
|||
}, 'with invalid stun url should throw SyntaxError');
|
||||
|
||||
config_test(makePc => {
|
||||
const pc = makePc({ iceServers: [{
|
||||
urls: [],
|
||||
credentialType: 'password'
|
||||
}] });
|
||||
|
||||
const { iceServers } = pc.getConfiguration();
|
||||
assert_equals(iceServers.length, 1);
|
||||
|
||||
const server = iceServers[0];
|
||||
assert_array_equals(server.urls, []);
|
||||
assert_equals(server.credentialType, 'password');
|
||||
}, `with empty urls and credentialType password should succeed`);
|
||||
|
||||
config_test(makePc => {
|
||||
const pc = makePc({ iceServers: [{
|
||||
urls: [],
|
||||
credentialType: 'oauth'
|
||||
}] });
|
||||
|
||||
const { iceServers } = pc.getConfiguration();
|
||||
assert_equals(iceServers.length, 1);
|
||||
|
||||
const server = iceServers[0];
|
||||
assert_array_equals(server.urls, []);
|
||||
assert_equals(server.credentialType, 'oauth');
|
||||
}, `with empty urls and credentialType oauth should succeed`);
|
||||
assert_throws('SyntaxError', () =>
|
||||
makePc({ iceServers: [{
|
||||
urls: []
|
||||
}] }));
|
||||
}, `with empty urls should throw SyntaxError`);
|
||||
|
||||
config_test(makePc => {
|
||||
assert_throws(new TypeError(), () =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue