Update web-platform-tests to revision 2b7dace05fc1869398ee24f84fda4c0e4c0455ae

This commit is contained in:
WPT Sync Bot 2018-08-31 21:37:12 +00:00 committed by Tom Servo
parent b23125d590
commit 6c901de216
844 changed files with 19802 additions and 3093 deletions

View file

@ -32,14 +32,18 @@
bufferSource.buffer = toneBuffer;
window.context = context;
should(() => context.createDelay(180)).throw("NotSupportedError",
"Delay length cannot be 180 seconds or more");
should(() => context.createDelay(0)).throw("NotSupportedError",
"Delay length cannot be 0");
should(() => context.createDelay(-1)).throw("NotSupportedError",
"Delay length cannot be negative");
should(() => context.createDelay(NaN)).throw(TypeError,
"Delay length cannot be a NaN");
should(() => context.createDelay(180),
'Setting Delay length to 180 seconds or more')
.throw(DOMException, 'NotSupportedError');
should(() => context.createDelay(0),
'Setting Delay length to 0 seconds')
.throw(DOMException, 'NotSupportedError');
should(() => context.createDelay(-1),
'Setting Delay length to negative')
.throw(DOMException, 'NotSupportedError');
should(() => context.createDelay(NaN),
'Setting Delay length to NaN')
.throw(TypeError);
let delay = context.createDelay(179);
delay.delayTime.value = delayTimeSeconds;