Update web-platform-tests to revision abd18b3e018d25ed668d179c905b7869dca5e239

This commit is contained in:
WPT Sync Bot 2018-07-19 21:07:28 -04:00
parent 908a642063
commit 158f7eec0e
117 changed files with 2997 additions and 434 deletions

View file

@ -8,7 +8,7 @@ function testStartStop(should, node, options) {
should(() => {
node.start(time);
}, `start(${time})`)
.throw('TypeError');
.throw(TypeError);
});
should(() => {
@ -17,7 +17,7 @@ function testStartStop(should, node, options) {
should(() => {
node.start(-1);
}, 'start(-1)').throw('RangeError');
}, 'start(-1)').throw(RangeError);
if (options) {
options.forEach(test => {
@ -32,14 +32,14 @@ function testStartStop(should, node, options) {
}, 'Calling start() twice').throw('InvalidStateError');
should(() => {
node.stop(-1);
}, 'stop(-1)').throw('RangeError');
}, 'stop(-1)').throw(RangeError);
// Test non-finite stop times
nonFiniteValues.forEach(time => {
should(() => {
node.stop(time);
}, `stop(${time})`)
.throw('TypeError');
.throw(TypeError);
});
}