test: update WPT files for WebIDL tests · nodejs/node@f25637b · GitHub
Skip to content

Commit f25637b

Browse files
panvaRafaelGSS
authored andcommitted
test: update WPT files for WebIDL tests
PR-URL: #50712 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 2e0abed commit f25637b

21 files changed

Lines changed: 762 additions & 130 deletions

test/fixtures/wpt/README.md

Lines changed: 2 additions & 2 deletions
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// GENERATED CONTENT - DO NOT EDIT
2+
// Content was automatically extracted by Reffy into webref
3+
// (https://github.com/w3c/webref)
4+
// Source: Compression Streams (https://wicg.github.io/compression/)
5+
6+
enum CompressionFormat {
7+
"deflate",
8+
"deflate-raw",
9+
"gzip",
10+
};
11+
12+
[Exposed=*]
13+
interface CompressionStream {
14+
constructor(CompressionFormat format);
15+
};
16+
CompressionStream includes GenericTransformStream;
17+
18+
[Exposed=*]
19+
interface DecompressionStream {
20+
constructor(CompressionFormat format);
21+
};
22+
DecompressionStream includes GenericTransformStream;

test/fixtures/wpt/interfaces/dom.idl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ interface AbortController {
9595
interface AbortSignal : EventTarget {
9696
[NewObject] static AbortSignal abort(optional any reason);
9797
[Exposed=(Window,Worker), NewObject] static AbortSignal timeout([EnforceRange] unsigned long long milliseconds);
98+
[NewObject] static AbortSignal _any(sequence<AbortSignal> signals);
9899

99100
readonly attribute boolean aborted;
100101
readonly attribute any reason;
@@ -618,7 +619,7 @@ callback interface XPathNSResolver {
618619

619620
interface mixin XPathEvaluatorBase {
620621
[NewObject] XPathExpression createExpression(DOMString expression, optional XPathNSResolver? resolver = null);
621-
XPathNSResolver createNSResolver(Node nodeResolver);
622+
Node createNSResolver(Node nodeResolver); // legacy
622623
// XPathResult.ANY_TYPE = 0
623624
XPathResult evaluate(DOMString expression, Node contextNode, optional XPathNSResolver? resolver = null, optional unsigned short type = 0, optional XPathResult? result = null);
624625
};

test/fixtures/wpt/interfaces/encoding.idl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dictionary TextDecodeOptions {
2222
interface TextDecoder {
2323
constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
2424

25-
USVString decode(optional [AllowShared] BufferSource input, optional TextDecodeOptions options = {});
25+
USVString decode(optional AllowSharedBufferSource input, optional TextDecodeOptions options = {});
2626
};
2727
TextDecoder includes TextDecoderCommon;
2828

test/fixtures/wpt/interfaces/hr-time.idl

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)