Skip to content

Commit 31ecffa

Browse files
Uzlopakgithub-actions[bot]
authored andcommitted
chore: update WPT
1 parent 1d0e343 commit 31ecffa

28 files changed

+962
-637
lines changed

test/fixtures/wpt/fetch/range/general.any.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ promise_test(async () => {
8888
});
8989

9090
const response = await fetch(stashTakeURL);
91-
92-
assert_regexp_match(await response.json(),
93-
/.*\bidentity\b.*/,
94-
`Expect identity accept-encoding if range header is ${JSON.stringify(rangeHeader)}`);
91+
assert_equals(await response.json(), 'identity', `Expect identity accept-encoding if range header is ${JSON.stringify(rangeHeader)}`);
9592
}
9693
}, `Fetch with range header will be sent with Accept-Encoding: identity`);
9794

test/fixtures/wpt/interfaces/IndexedDB.idl

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,11 @@ interface IDBObjectStore {
108108
[NewObject] IDBRequest clear();
109109
[NewObject] IDBRequest get(any query);
110110
[NewObject] IDBRequest getKey(any query);
111-
[NewObject] IDBRequest getAll(optional any query,
111+
[NewObject] IDBRequest getAll(optional any queryOrOptions,
112112
optional [EnforceRange] unsigned long count);
113-
[NewObject] IDBRequest getAllKeys(optional any query,
113+
[NewObject] IDBRequest getAllKeys(optional any queryOrOptions,
114114
optional [EnforceRange] unsigned long count);
115+
[NewObject] IDBRequest getAllRecords(optional IDBGetAllOptions options = {});
115116
[NewObject] IDBRequest count(optional any query);
116117

117118
[NewObject] IDBRequest openCursor(optional any query,
@@ -132,6 +133,12 @@ dictionary IDBIndexParameters {
132133
boolean multiEntry = false;
133134
};
134135

136+
dictionary IDBGetAllOptions {
137+
any query = null;
138+
[EnforceRange] unsigned long count;
139+
IDBCursorDirection direction = "next";
140+
};
141+
135142
[Exposed=(Window,Worker)]
136143
interface IDBIndex {
137144
attribute DOMString name;
@@ -142,10 +149,11 @@ interface IDBIndex {
142149

143150
[NewObject] IDBRequest get(any query);
144151
[NewObject] IDBRequest getKey(any query);
145-
[NewObject] IDBRequest getAll(optional any query,
152+
[NewObject] IDBRequest getAll(optional any queryOrOptions,
146153
optional [EnforceRange] unsigned long count);
147-
[NewObject] IDBRequest getAllKeys(optional any query,
154+
[NewObject] IDBRequest getAllKeys(optional any queryOrOptions,
148155
optional [EnforceRange] unsigned long count);
156+
[NewObject] IDBRequest getAllRecords(optional IDBGetAllOptions options = {});
149157
[NewObject] IDBRequest count(optional any query);
150158

151159
[NewObject] IDBRequest openCursor(optional any query,
@@ -173,6 +181,13 @@ interface IDBKeyRange {
173181
boolean includes(any key);
174182
};
175183

184+
[Exposed=(Window,Worker)]
185+
interface IDBRecord {
186+
readonly attribute any key;
187+
readonly attribute any primaryKey;
188+
readonly attribute any value;
189+
};
190+
176191
[Exposed=(Window,Worker)]
177192
interface IDBCursor {
178193
readonly attribute (IDBObjectStore or IDBIndex) source;

test/fixtures/wpt/interfaces/cookiestore.idl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// GENERATED CONTENT - DO NOT EDIT
22
// Content was automatically extracted by Reffy into webref
33
// (https://github.com/w3c/webref)
4-
// Source: Cookie Store API (https://cookiestore.spec.whatwg.org/)
4+
// Source: Cookie Store API Standard (https://cookiestore.spec.whatwg.org/)
55

66
[Exposed=(ServiceWorker,Window),
77
SecureContext]
@@ -53,12 +53,6 @@ dictionary CookieStoreDeleteOptions {
5353
dictionary CookieListItem {
5454
USVString name;
5555
USVString value;
56-
USVString? domain;
57-
USVString path;
58-
DOMHighResTimeStamp? expires;
59-
boolean secure;
60-
CookieSameSite sameSite;
61-
boolean partitioned;
6256
};
6357

6458
typedef sequence<CookieListItem> CookieList;

test/fixtures/wpt/interfaces/css-typed-om.idl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ interface CSSUnparsedValue : CSSStyleValue {
4545
iterable<CSSUnparsedSegment>;
4646
readonly attribute unsigned long length;
4747
getter CSSUnparsedSegment (unsigned long index);
48-
setter CSSUnparsedSegment (unsigned long index, CSSUnparsedSegment val);
48+
setter undefined (unsigned long index, CSSUnparsedSegment val);
4949
};
5050

5151
typedef (USVString or CSSVariableReferenceValue) CSSUnparsedSegment;
@@ -263,7 +263,7 @@ interface CSSTransformValue : CSSStyleValue {
263263
iterable<CSSTransformComponent>;
264264
readonly attribute unsigned long length;
265265
getter CSSTransformComponent (unsigned long index);
266-
setter CSSTransformComponent (unsigned long index, CSSTransformComponent val);
266+
setter undefined (unsigned long index, CSSTransformComponent val);
267267

268268
readonly attribute boolean is2D;
269269
DOMMatrix toMatrix();

test/fixtures/wpt/interfaces/element-timing.idl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ interface PerformanceElementTiming : PerformanceEntry {
2020
PerformanceElementTiming includes PaintTimingMixin;
2121

2222
partial interface Element {
23-
[CEReactions] attribute DOMString elementTiming;
23+
[CEReactions, Reflect] attribute DOMString elementTiming;
2424
};

test/fixtures/wpt/interfaces/fedcm.idl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dictionary IdentityCredentialDisconnectOptions : IdentityProviderConfig {
1010
[Exposed=Window, SecureContext]
1111
interface IdentityCredential : Credential {
1212
static Promise<undefined> disconnect(IdentityCredentialDisconnectOptions options);
13-
readonly attribute USVString? token;
13+
readonly attribute any token;
1414
readonly attribute boolean isAutoSelected;
1515
readonly attribute USVString configURL;
1616
};
@@ -59,7 +59,6 @@ dictionary IdentityProviderConfig {
5959
};
6060

6161
dictionary IdentityProviderRequestOptions : IdentityProviderConfig {
62-
USVString nonce;
6362
DOMString loginHint;
6463
DOMString domainHint;
6564
sequence<USVString> fields;
@@ -113,7 +112,7 @@ dictionary IdentityProviderAccountList {
113112
};
114113

115114
dictionary IdentityAssertionResponse {
116-
USVString token;
115+
any token;
117116
USVString continue_on;
118117
IdentityCredentialErrorInit error;
119118
};
@@ -136,6 +135,6 @@ dictionary IdentityResolveOptions {
136135

137136
[Exposed=Window, SecureContext] interface IdentityProvider {
138137
static undefined close();
139-
static Promise<undefined> resolve(DOMString token, optional IdentityResolveOptions options = {});
138+
static Promise<undefined> resolve(any token, optional IdentityResolveOptions options = {});
140139
static Promise<sequence<IdentityUserInfo>> getUserInfo(IdentityProviderConfig config);
141140
};

test/fixtures/wpt/interfaces/fetch.idl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,16 @@ enum ResponseType { "basic", "cors", "default", "error", "opaque", "opaqueredire
116116
partial interface mixin WindowOrWorkerGlobalScope {
117117
[NewObject] Promise<Response> fetch(RequestInfo input, optional RequestInit init = {});
118118
};
119+
120+
dictionary DeferredRequestInit : RequestInit {
121+
DOMHighResTimeStamp activateAfter;
122+
};
123+
124+
[Exposed=Window]
125+
interface FetchLaterResult {
126+
readonly attribute boolean activated;
127+
};
128+
129+
partial interface Window {
130+
[NewObject] FetchLaterResult fetchLater(RequestInfo input, optional DeferredRequestInit init = {});
131+
};

test/fixtures/wpt/interfaces/fs.idl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dictionary FileSystemRemoveOptions {
4242

4343
[Exposed=(Window,Worker), SecureContext, Serializable]
4444
interface FileSystemDirectoryHandle : FileSystemHandle {
45-
async iterable<USVString, FileSystemHandle>;
45+
async_iterable<USVString, FileSystemHandle>;
4646

4747
Promise<FileSystemFileHandle> getFileHandle(USVString name, optional FileSystemGetFileOptions options = {});
4848
Promise<FileSystemDirectoryHandle> getDirectoryHandle(USVString name, optional FileSystemGetDirectoryOptions options = {});

0 commit comments

Comments
 (0)