forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add interfaces/compression.idl and test (web-platform-tests#23846)
Closes web-platform-tests#23829
- Loading branch information
1 parent
c4a7c9d
commit c95adf4
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// META: script=/resources/WebIDLParser.js | ||
// META: script=/resources/idlharness.js | ||
|
||
'use strict'; | ||
|
||
// https://wicg.github.io/compression/ | ||
|
||
idl_test( | ||
['compression'], | ||
[], | ||
idl_array => { | ||
idl_array.add_objects({ | ||
CompressionStream: ['new CompressionStream("deflate")'], | ||
DecompressionStream: ['new DecompressionStream("deflate")'], | ||
}); | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// GENERATED CONTENT - DO NOT EDIT | ||
// Content was automatically extracted by Reffy into reffy-reports | ||
// (https://github.com/tidoust/reffy-reports) | ||
// Source: Compression Streams (https://wicg.github.io/compression/) | ||
|
||
interface mixin GenericTransformStream { | ||
readonly attribute ReadableStream readable; | ||
readonly attribute WritableStream writable; | ||
}; | ||
|
||
[Exposed=(Window,Worker)] | ||
interface CompressionStream { | ||
constructor(DOMString format); | ||
}; | ||
CompressionStream includes GenericTransformStream; | ||
|
||
[Exposed=(Window,Worker)] | ||
interface DecompressionStream { | ||
constructor(DOMString format); | ||
}; | ||
DecompressionStream includes GenericTransformStream; |