Skip to content

Commit 7006517

Browse files
committed
Bug 1976160 [wpt PR 53645] - Update QuotaExceededError expectations, a=testonly
Automatic update from web-platform-tests Update QuotaExceededError expectations (#53645) See whatwg/webidl#1465. -- wpt-commits: 1d2c5fb36a6e477c8f915bde7eca027be6abe792 wpt-pr: 53645 UltraBlame original commit: 272d71b3fbc93813a5879430d9f769e4f0eac25c
1 parent ac22727 commit 7006517

16 files changed

+1020
-154
lines changed

testing/web-platform/tests/WebCryptoAPI/getRandomValues.any.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,14 +419,12 @@ ctor
419419
.
420420
BYTES_PER_ELEMENT
421421
;
422-
assert_throws_dom
422+
assert_throws_quotaexceedederror
423423
(
424-
"
425-
QuotaExceededError
426-
"
427-
function
428424
(
429425
)
426+
=
427+
>
430428
{
431429
self
432430
.
@@ -442,7 +440,10 @@ maxlength
442440
1
443441
)
444442
)
443+
;
445444
}
445+
null
446+
null
446447
"
447448
crypto
448449
.
@@ -452,6 +453,7 @@ over
452453
65536
453454
"
454455
)
456+
;
455457
}
456458
"
457459
Large

testing/web-platform/tests/ai/language_detection/detector.https.window.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -715,13 +715,21 @@ inputQuota
715715
)
716716
{
717717
await
718-
promise_rejects_dom
718+
promise_rejects_quotaexceedederror
719719
(
720720
t
721-
'
722-
QuotaExceededError
723-
'
724721
detectPromise
722+
requested
723+
=
724+
>
725+
requested
726+
!
727+
=
728+
=
729+
null
730+
detector
731+
.
732+
inputQuota
725733
)
726734
;
727735
}

testing/web-platform/tests/ai/translator/translator.optional.https.window.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,18 +1287,26 @@ text
12871287
else
12881288
{
12891289
await
1290-
promise_rejects_dom
1290+
promise_rejects_quotaexceedederror
12911291
(
12921292
t
1293-
'
1294-
QuotaExceededError
1295-
'
12961293
translator
12971294
.
12981295
translate
12991296
(
13001297
text
13011298
)
1299+
requested
1300+
=
1301+
>
1302+
requested
1303+
!
1304+
=
1305+
=
1306+
null
1307+
translator
1308+
.
1309+
inputQuota
13021310
)
13031311
;
13041312
}

testing/web-platform/tests/background-fetch/fetch.https.window.js

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,12 +1043,9 @@ MAX_SAFE_INTEGER
10431043
}
10441044
;
10451045
await
1046-
promise_rejects_dom
1046+
promise_rejects_quotaexceedederror
10471047
(
10481048
test
1049-
'
1050-
QUOTA_EXCEEDED_ERR
1051-
'
10521049
backgroundFetch
10531050
.
10541051
fetch
@@ -1065,17 +1062,8 @@ txt
10651062
'
10661063
options
10671064
)
1068-
'
1069-
This
1070-
fetch
1071-
should
1072-
have
1073-
thrown
1074-
a
1075-
quota
1076-
exceeded
1077-
error
1078-
'
1065+
null
1066+
null
10791067
)
10801068
;
10811069
}

testing/web-platform/tests/encrypted-media/scripts/setmediakeys-to-multiple-video-elements.js

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,36 @@ assert_equals
233233
(
234234
error
235235
.
236-
name
236+
constructor
237+
globalThis
238+
.
239+
QuotaExceededError
237240
'
238241
QuotaExceededError
242+
constructor
243+
match
244+
'
245+
)
246+
;
247+
assert_equals
248+
(
249+
error
250+
.
251+
quota
252+
null
253+
'
254+
quota
255+
'
256+
)
257+
;
258+
assert_equals
259+
(
260+
error
261+
.
262+
requested
263+
null
264+
'
265+
requested
239266
'
240267
)
241268
;

testing/web-platform/tests/fetch/fetch-later/quota/accumulated-oversized-payload.tentative.https.window.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,8 @@ referrer
123123
}
124124
)
125125
;
126-
assert_throws_dom
126+
assert_throws_quotaexceedederror
127127
(
128-
'
129-
QuotaExceededError
130-
'
131128
(
132129
)
133130
=
@@ -165,6 +162,8 @@ referrer
165162
)
166163
;
167164
}
165+
null
166+
null
168167
)
169168
;
170169
fetchLater

testing/web-platform/tests/fetch/fetch-later/quota/max-payload.tentative.https.window.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,13 @@ HTTPS_ORIGIN
149149
}
150150
)
151151
;
152-
assert_throws_dom
152+
assert_throws_quotaexceedederror
153153
(
154-
'
155-
QuotaExceededError
156-
'
157154
(
158155
)
159156
=
160157
>
158+
{
161159
fetchLater
162160
(
163161
requestUrl
@@ -186,6 +184,10 @@ dataType
186184
)
187185
}
188186
)
187+
;
188+
}
189+
null
190+
null
189191
)
190192
;
191193
}

testing/web-platform/tests/fetch/fetch-later/quota/oversized-payload.tentative.https.window.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@ test
2424
)
2525
=
2626
>
27-
assert_throws_dom
27+
{
28+
assert_throws_quotaexceedederror
2829
(
29-
'
30-
QuotaExceededError
31-
'
3230
(
3331
)
3432
=
3533
>
34+
{
3635
fetchLater
3736
(
3837
'
@@ -59,7 +58,13 @@ dataType
5958
)
6059
}
6160
)
61+
;
62+
}
63+
null
64+
null
6265
)
66+
;
67+
}
6368
fetchLater
6469
(
6570
)

testing/web-platform/tests/fetch/fetch-later/resources/fetch-later.html

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -322,59 +322,6 @@
322322
e
323323
)
324324
{
325-
if
326-
(
327-
e
328-
.
329-
name
330-
=
331-
=
332-
"
333-
QuotaExceededError
334-
"
335-
&
336-
&
337-
e
338-
instanceof
339-
DOMException
340-
)
341-
{
342-
/
343-
/
344-
PostMessage
345-
is
346-
unable
347-
to
348-
serialize
349-
the
350-
QuotExceededError
351-
object
352-
.
353-
/
354-
/
355-
Therefore
356-
do
357-
basic
358-
checks
359-
here
360-
and
361-
pass
362-
error
363-
name
364-
if
365-
successful
366-
.
367-
e
368-
=
369-
{
370-
name
371-
:
372-
e
373-
.
374-
name
375-
}
376-
;
377-
}
378325
postMessageBack
379326
(
380327
{

testing/web-platform/tests/fs/script-tests/FileSystemBaseHandle-buckets.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,9 @@ inboxRootDir
246246
)
247247
;
248248
return
249-
promise_rejects_dom
249+
promise_rejects_quotaexceedederror
250250
(
251251
t
252-
'
253-
QuotaExceededError
254-
'
255252
createFileWithContents
256253
(
257254
'
@@ -335,6 +332,8 @@ laborum
335332
'
336333
inboxRootDir
337334
)
335+
null
336+
null
338337
)
339338
;
340339
}

0 commit comments

Comments
 (0)