Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326

This commit is contained in:
Josh Matthews 2017-10-12 09:25:50 -04:00
parent 462c272380
commit 1f531f66ea
5377 changed files with 174916 additions and 84369 deletions

View file

@ -26,6 +26,7 @@ dictionary RTCConfiguration {
*/
test(() => {
const pc = new RTCPeerConnection();
assert_idl_attribute(pc, "getConfiguration");
assert_equals(pc.getConfiguration().iceCandidatePoolSize, 0);
}, "Initialize a new RTCPeerConnection with no iceCandidatePoolSize");
@ -33,6 +34,7 @@ test(() => {
const pc = new RTCPeerConnection({
iceCandidatePoolSize: 0
});
assert_idl_attribute(pc, "getConfiguration");
assert_equals(pc.getConfiguration().iceCandidatePoolSize, 0);
}, "Initialize a new RTCPeerConnection with iceCandidatePoolSize: 0");
@ -40,6 +42,7 @@ test(() => {
const pc = new RTCPeerConnection({
iceCandidatePoolSize: 255
});
assert_idl_attribute(pc, "getConfiguration");
assert_equals(pc.getConfiguration().iceCandidatePoolSize, 255);
}, "Initialize a new RTCPeerConnection with iceCandidatePoolSize: 255");
@ -63,9 +66,11 @@ test(() => {
/*
Reconfiguration
*/
const pc = new RTCPeerConnection({});
test(() => {
const pc = new RTCPeerConnection();
assert_idl_attribute(pc, "getConfiguration");
assert_idl_attribute(pc, "setConfiguration");
pc.setConfiguration({
iceCandidatePoolSize: 0
});
@ -73,6 +78,9 @@ test(() => {
}, "Reconfigure RTCPeerConnection instance iceCandidatePoolSize to 0");
test(() => {
const pc = new RTCPeerConnection();
assert_idl_attribute(pc, "getConfiguration");
assert_idl_attribute(pc, "setConfiguration");
pc.setConfiguration({
iceCandidatePoolSize: 255
});
@ -88,8 +96,8 @@ been implemented). Without this check, these tests will pass incorrectly.
*/
test(() => {
const pc = new RTCPeerConnection();
assert_equals(typeof pc.setConfiguration, "function", "RTCPeerConnection.prototype.setConfiguration is not implemented");
assert_throws(new TypeError(), () => {
pc.setConfiguration({
iceCandidatePoolSize: -1
@ -98,8 +106,8 @@ test(() => {
}, "Reconfigure RTCPeerConnection instance iceCandidatePoolSize to -1 (Out Of Range)");
test(() => {
const pc = new RTCPeerConnection();
assert_equals(typeof pc.setConfiguration, "function", "RTCPeerConnection.prototype.setConfiguration is not implemented");
assert_throws(new TypeError(), () => {
pc.setConfiguration({
iceCandidatePoolSize: 256