Skip to content

Commit f25637b

Browse files
panvaRafaelGSS
authored andcommittedNov 29, 2023
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

+762
-130
lines changed
 

‎test/fixtures/wpt/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Last update:
2323
- html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/2c5c3c4c27/html/webappapis/microtask-queuing
2424
- html/webappapis/structured-clone: https://github.com/web-platform-tests/wpt/tree/47d3fb280c/html/webappapis/structured-clone
2525
- html/webappapis/timers: https://github.com/web-platform-tests/wpt/tree/5873f2d8f1/html/webappapis/timers
26-
- interfaces: https://github.com/web-platform-tests/wpt/tree/df731dab88/interfaces
26+
- interfaces: https://github.com/web-platform-tests/wpt/tree/727995f043/interfaces
2727
- performance-timeline: https://github.com/web-platform-tests/wpt/tree/17ebc3aea0/performance-timeline
2828
- resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing
29-
- resources: https://github.com/web-platform-tests/wpt/tree/919874f84f/resources
29+
- resources: https://github.com/web-platform-tests/wpt/tree/1e140d63ec/resources
3030
- streams: https://github.com/web-platform-tests/wpt/tree/517e945bbf/streams
3131
- url: https://github.com/web-platform-tests/wpt/tree/c2d7e70b52/url
3232
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
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

+2-1
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

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ typedef double DOMHighResTimeStamp;
77

88
typedef unsigned long long EpochTimeStamp;
99

10-
[Exposed=*]
10+
[Exposed=(Window,Worker)]
1111
interface Performance : EventTarget {
1212
DOMHighResTimeStamp now();
1313
readonly attribute DOMHighResTimeStamp timeOrigin;

0 commit comments

Comments
 (0)
Please sign in to comment.