Skip to content

Commit

Permalink
test: update WPT files for WebIDL tests
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Nov 14, 2023
1 parent c79e7dd commit 74d8ee5
Show file tree
Hide file tree
Showing 21 changed files with 762 additions and 130 deletions.
4 changes: 2 additions & 2 deletions test/fixtures/wpt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ Last update:
- html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/2c5c3c4c27/html/webappapis/microtask-queuing
- html/webappapis/structured-clone: https://github.com/web-platform-tests/wpt/tree/47d3fb280c/html/webappapis/structured-clone
- html/webappapis/timers: https://github.com/web-platform-tests/wpt/tree/5873f2d8f1/html/webappapis/timers
- interfaces: https://github.com/web-platform-tests/wpt/tree/df731dab88/interfaces
- interfaces: https://github.com/web-platform-tests/wpt/tree/727995f043/interfaces
- performance-timeline: https://github.com/web-platform-tests/wpt/tree/17ebc3aea0/performance-timeline
- resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing
- resources: https://github.com/web-platform-tests/wpt/tree/919874f84f/resources
- resources: https://github.com/web-platform-tests/wpt/tree/1e140d63ec/resources
- streams: https://github.com/web-platform-tests/wpt/tree/517e945bbf/streams
- url: https://github.com/web-platform-tests/wpt/tree/c2d7e70b52/url
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
Expand Down
22 changes: 22 additions & 0 deletions test/fixtures/wpt/interfaces/compression.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Compression Streams (https://wicg.github.io/compression/)

enum CompressionFormat {
"deflate",
"deflate-raw",
"gzip",
};

[Exposed=*]
interface CompressionStream {
constructor(CompressionFormat format);
};
CompressionStream includes GenericTransformStream;

[Exposed=*]
interface DecompressionStream {
constructor(CompressionFormat format);
};
DecompressionStream includes GenericTransformStream;
3 changes: 2 additions & 1 deletion test/fixtures/wpt/interfaces/dom.idl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ interface AbortController {
interface AbortSignal : EventTarget {
[NewObject] static AbortSignal abort(optional any reason);
[Exposed=(Window,Worker), NewObject] static AbortSignal timeout([EnforceRange] unsigned long long milliseconds);
[NewObject] static AbortSignal _any(sequence<AbortSignal> signals);

readonly attribute boolean aborted;
readonly attribute any reason;
Expand Down Expand Up @@ -618,7 +619,7 @@ callback interface XPathNSResolver {

interface mixin XPathEvaluatorBase {
[NewObject] XPathExpression createExpression(DOMString expression, optional XPathNSResolver? resolver = null);
XPathNSResolver createNSResolver(Node nodeResolver);
Node createNSResolver(Node nodeResolver); // legacy
// XPathResult.ANY_TYPE = 0
XPathResult evaluate(DOMString expression, Node contextNode, optional XPathNSResolver? resolver = null, optional unsigned short type = 0, optional XPathResult? result = null);
};
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/wpt/interfaces/encoding.idl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dictionary TextDecodeOptions {
interface TextDecoder {
constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});

USVString decode(optional [AllowShared] BufferSource input, optional TextDecodeOptions options = {});
USVString decode(optional AllowSharedBufferSource input, optional TextDecodeOptions options = {});
};
TextDecoder includes TextDecoderCommon;

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/wpt/interfaces/hr-time.idl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ typedef double DOMHighResTimeStamp;

typedef unsigned long long EpochTimeStamp;

[Exposed=*]
[Exposed=(Window,Worker)]
interface Performance : EventTarget {
DOMHighResTimeStamp now();
readonly attribute DOMHighResTimeStamp timeOrigin;
Expand Down
Loading

0 comments on commit 74d8ee5

Please sign in to comment.