Skip to content

Commit 87d7ccf

Browse files
chore: update WPT (#3669)
Co-authored-by: Uzlopak <[email protected]>
1 parent 44a7e91 commit 87d7ccf

File tree

14 files changed

+40
-173
lines changed

14 files changed

+40
-173
lines changed

test/fixtures/wpt/interfaces/audio-session.idl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
// (https://github.com/w3c/webref)
44
// Source: Audio Session (https://w3c.github.io/audio-session/)
55

6-
enum AudioSessionState {
7-
"inactive",
8-
"active",
9-
"interrupted"
6+
[Exposed=Window]
7+
interface AudioSession : EventTarget {
8+
attribute AudioSessionType type;
9+
10+
readonly attribute AudioSessionState state;
11+
attribute EventHandler onstatechange;
1012
};
1113

1214
enum AudioSessionType {
@@ -18,16 +20,14 @@ enum AudioSessionType {
1820
"play-and-record"
1921
};
2022

23+
enum AudioSessionState {
24+
"inactive",
25+
"active",
26+
"interrupted"
27+
};
28+
2129
[Exposed=Window]
2230
partial interface Navigator {
2331
// The default audio session that the user agent will use when media elements start/stop playing.
2432
readonly attribute AudioSession audioSession;
2533
};
26-
27-
[Exposed=Window]
28-
interface AudioSession : EventTarget {
29-
attribute AudioSessionType type;
30-
31-
readonly attribute AudioSessionState state;
32-
attribute EventHandler onstatechange;
33-
};

test/fixtures/wpt/interfaces/mediacapture-viewport.idl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,5 @@
55

66
partial interface MediaDevices {
77
Promise<MediaStream> getViewportMedia(
8-
optional ViewportMediaStreamConstraints constraints = {});
9-
};
10-
11-
dictionary ViewportMediaStreamConstraints {
12-
(boolean or MediaTrackConstraints) video = true;
13-
(boolean or MediaTrackConstraints) audio = false;
8+
optional DisplayMediaStreamOptions options = {});
149
};

test/fixtures/wpt/interfaces/mediasession.idl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,8 @@ dictionary MediaPositionState {
9898

9999
dictionary MediaSessionActionDetails {
100100
required MediaSessionAction action;
101-
};
102-
103-
dictionary MediaSessionSeekActionDetails : MediaSessionActionDetails {
104101
double seekOffset;
105-
};
106-
107-
dictionary MediaSessionSeekToActionDetails : MediaSessionActionDetails {
108-
required double seekTime;
102+
double seekTime;
109103
boolean fastSeek;
110-
};
111-
112-
dictionary MediaSessionCaptureActionDetails : MediaSessionActionDetails {
113104
boolean isActivating;
114105
};

test/fixtures/wpt/interfaces/observable.idl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ interface Observable {
8181
Observable drop(unsigned long long amount);
8282
Observable flatMap(Mapper mapper);
8383
Observable switchMap(Mapper mapper);
84-
Observable inspect(optional ObservableInspectorUnion inspect_observer = {});
84+
Observable inspect(optional ObservableInspectorUnion inspectorUnion = {});
8585
Observable catch(CatchCallback callback);
8686
Observable finally(VoidFunction callback);
8787

test/fixtures/wpt/interfaces/selection-api.idl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface Selection {
1818
undefined removeRange(Range range);
1919
undefined removeAllRanges();
2020
undefined empty();
21-
sequence<StaticRange> getComposedRanges(ShadowRoot... shadowRoots);
21+
sequence<StaticRange> getComposedRanges(optional GetComposedRangesOptions options = {});
2222
undefined collapse(Node? node, optional unsigned long offset = 0);
2323
undefined setPosition(Node? node, optional unsigned long offset = 0);
2424
undefined collapseToStart();
@@ -32,6 +32,10 @@ interface Selection {
3232
stringifier;
3333
};
3434

35+
dictionary GetComposedRangesOptions {
36+
sequence<ShadowRoot> shadowRoots = [];
37+
};
38+
3539
partial interface Document {
3640
Selection? getSelection();
3741
};

test/fixtures/wpt/interfaces/service-workers.idl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ dictionary ExtendableEventInit : EventInit {
167167

168168
[Exposed=ServiceWorker]
169169
interface InstallEvent : ExtendableEvent {
170+
constructor(DOMString type, optional ExtendableEventInit eventInitDict = {});
170171
Promise<undefined> addRoutes((RouterRule or sequence<RouterRule>) rules);
171172
};
172173

test/fixtures/wpt/interfaces/shared-storage.idl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ dictionary SharedStorageRunOperationMethodOptions {
8989
boolean resolveToConfig = false;
9090
boolean keepAlive = false;
9191
SharedStoragePrivateAggregationConfig privateAggregationConfig;
92+
DOMString savedQuery;
9293
};
9394

9495
dictionary SharedStorageWorkletOptions : WorkletOptions {

test/fixtures/wpt/interfaces/turtledove.idl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,20 @@ partial interface Navigator {
128128
Promise<AdAuctionData> getInterestGroupAdAuctionData(AdAuctionDataConfig config);
129129
};
130130

131+
dictionary AdAuctionData {
132+
required Uint8Array request;
133+
required USVString requestId;
134+
};
135+
131136
dictionary AdAuctionDataConfig {
132137
required USVString seller;
133138
required USVString coordinatorOrigin;
139+
unsigned long requestSize;
140+
record<USVString, AdAuctionDataBuyerConfig> perBuyerConfig;
134141
};
135142

136-
dictionary AdAuctionData {
137-
required Uint8Array request;
138-
required USVString requestId;
143+
dictionary AdAuctionDataBuyerConfig {
144+
unsigned long targetSize;
139145
};
140146

141147
[SecureContext]

test/fixtures/wpt/interfaces/webgpu.idl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ interface GPU {
7878
};
7979

8080
dictionary GPURequestAdapterOptions {
81-
any featureLevel;
81+
DOMString featureLevel;
8282
GPUPowerPreference powerPreference;
8383
boolean forceFallbackAdapter = false;
8484
};
@@ -1183,6 +1183,7 @@ interface GPUCanvasContext {
11831183
undefined configure(GPUCanvasConfiguration configuration);
11841184
undefined unconfigure();
11851185

1186+
GPUCanvasConfiguration? getConfiguration();
11861187
GPUTexture getCurrentTexture();
11871188
};
11881189

test/fixtures/wpt/interfaces/webnn.idl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ enum MLOperandDataType {
9090

9191
dictionary MLOperandDescriptor {
9292
required MLOperandDataType dataType;
93-
sequence<[EnforceRange] unsigned long> shape = [];
93+
required sequence<[EnforceRange] unsigned long> shape;
9494
};
9595

9696
[SecureContext, Exposed=(Window, DedicatedWorker)]

0 commit comments

Comments
 (0)