Skip to content

Commit 4104180

Browse files
github-actions[bot]Uzlopak
authored andcommitted
chore: update WPT (nodejs#3669)
Co-authored-by: Uzlopak <[email protected]>
1 parent ac85e25 commit 4104180

14 files changed

+40
-173
lines changed

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

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

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

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

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

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

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

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

+9-3
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

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

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

test/fixtures/wpt/interfaces/webrtc.idl

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ enum RTCSctpTransportState {
503503
"closed"
504504
};
505505

506-
[Exposed=Window]
506+
[Exposed=(Window,DedicatedWorker), Transferable]
507507
interface RTCDataChannel : EventTarget {
508508
readonly attribute USVString label;
509509
readonly attribute boolean ordered;

test/fixtures/wpt/resources/chromium/mock-pressure-service.js

-131
This file was deleted.

test/fixtures/wpt/resources/chromium/mock-pressure-service.js.headers

-1
This file was deleted.

test/fixtures/wpt/service-workers/service-worker/tentative/static-router/static-router-resource-timing.https.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
assert_equals(entryList.length, 1, description);
4848
const entry = entryList[0];
4949

50-
assert_equals(entry.matchedSourceType, options.matched_source_type, description);
51-
assert_equals(entry.finalSourceType, options.final_source_type, description);
50+
assert_equals(entry.workerMatchedSourceType, options.matched_source_type, description);
51+
assert_equals(entry.workerFinalSourceType, options.final_source_type, description);
5252

5353
assert_greater_than(entry.workerRouterEvaluationStart, 0, description);
5454
switch (entry.matchedSouceType) {
@@ -60,16 +60,16 @@
6060
case 'cache':
6161
assert_equals(entry.workerStart, 0, description);
6262
assert_greater_than_equal(entry.workerCacheLookupStart, entry.workerRouterEvaluationStart, description);
63-
if (entry.finalSourceType === 'cache') {
64-
assert_equals(entry.fetchStart, 0, description);
63+
if (entry.workerFinalSourceType === 'cache') {
64+
assert_equals(entry.fetchStart, entry.responseStart, description);
6565
assert_less_than_equal(entry.workerCacheLookupStart, entry.responseStart, description);
6666
} else {
6767
assert_less_than_equal(entry.workerCacheLookupStart, entry.fetchStart, description);
6868
}
6969
break;
7070
case 'race-network-and-fetch':
7171
assert_equals(entry.workerCacheLookupStart, 0, description);
72-
if (entry.finalSourceType === 'network') {
72+
if (entry.workerFinalSourceType === 'network') {
7373
assert_equals(entry.workerStart, 0, description);
7474
assert_less_than_equal(entry.workerRouterEvaluationStart, entry.fetchStart, description);
7575
} else {

0 commit comments

Comments
 (0)