mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Update web-platform-tests to revision abd18b3e018d25ed668d179c905b7869dca5e239
This commit is contained in:
parent
908a642063
commit
158f7eec0e
117 changed files with 2997 additions and 434 deletions
|
@ -32,11 +32,15 @@
|
|||
bufferSource.buffer = toneBuffer;
|
||||
|
||||
window.context = context;
|
||||
should(() => context.createDelay(180)).throw();
|
||||
should(() => context.createDelay(0)).throw();
|
||||
should(() => context.createDelay(-1)).throw();
|
||||
should(() => context.createDelay(NaN)).throw();
|
||||
;
|
||||
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");
|
||||
|
||||
let delay = context.createDelay(179);
|
||||
delay.delayTime.value = delayTimeSeconds;
|
||||
window.delay = delay;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue