Update web-platform-tests to revision 0313d9f383d954ef401e79f3b669a5781aa3441a

This commit is contained in:
WPT Sync Bot 2018-09-02 21:39:17 -04:00
parent aa61200eca
commit b28a41ac85
55 changed files with 970 additions and 156 deletions

View file

@ -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(), () =>