mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 474923949524b5c05a9e6f28ec082fdca87078de
This commit is contained in:
parent
b7b1b903d3
commit
328d5a4231
91 changed files with 3190 additions and 185 deletions
|
@ -0,0 +1,15 @@
|
|||
// META: global=worker
|
||||
|
||||
'use strict';
|
||||
|
||||
test(t => {
|
||||
assert_throws(new TypeError(), () => new DecompressionStream('a'), 'constructor should throw');
|
||||
}, '"a" should cause the constructor to throw');
|
||||
|
||||
test(t => {
|
||||
assert_throws(new TypeError(), () => new DecompressionStream(), 'constructor should throw');
|
||||
}, 'no input should cause the constructor to throw');
|
||||
|
||||
test(t => {
|
||||
assert_throws(new Error(), () => new DecompressionStream({ toString() { throw Error(); } }), 'constructor should throw');
|
||||
}, 'non-string input should cause the constructor to throw');
|
Loading…
Add table
Add a link
Reference in a new issue