Automatic update from web-platform-tests Remove ShadowRealm test coverage This intentionally does not make infrastructure or documentation changes, but without implementer support all the ShadowRealm tests add significant noise. Once there is implementer support this can be reverted. -- wpt-commits: e4a4672e9e607fc2b28e7173b83ce4e38ef53071 wpt-pr: 59794
16 lines
551 B
JavaScript
16 lines
551 B
JavaScript
// META: global=window,worker
|
|
|
|
'use strict';
|
|
|
|
test(t => {
|
|
assert_throws_js(TypeError, () => new CompressionStream('a'), 'constructor should throw');
|
|
}, '"a" should cause the constructor to throw');
|
|
|
|
test(t => {
|
|
assert_throws_js(TypeError, () => new CompressionStream(), 'constructor should throw');
|
|
}, 'no input should cause the constructor to throw');
|
|
|
|
test(t => {
|
|
assert_throws_js(Error, () => new CompressionStream({ toString() { throw Error(); } }), 'constructor should throw');
|
|
}, 'non-string input should cause the constructor to throw');
|