Skip to content

Commit 719b8b9

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 2c4a081 commit 719b8b9

16 files changed

+1639
-334
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -424,14 +424,12 @@ ctor
424424
.
425425
BYTES_PER_ELEMENT
426426
;
427-
assert_throws_dom
427+
assert_throws_quotaexceedederror
428428
(
429-
"
430-
QuotaExceededError
431-
"
432-
function
433429
(
434430
)
431+
=
432+
>
435433
{
436434
self
437435
.
@@ -447,7 +445,10 @@ maxlength
447445
1
448446
)
449447
)
448+
;
450449
}
450+
null
451+
null
451452
"
452453
crypto
453454
.
@@ -457,6 +458,7 @@ over
457458
65536
458459
"
459460
)
461+
;
460462
}
461463
"
462464
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
@@ -936,13 +936,21 @@ inputQuota
936936
)
937937
{
938938
await
939-
promise_rejects_dom
939+
promise_rejects_quotaexceedederror
940940
(
941941
t
942-
'
943-
QuotaExceededError
944-
'
945942
detectPromise
943+
requested
944+
=
945+
>
946+
requested
947+
!
948+
=
949+
=
950+
null
951+
detector
952+
.
953+
inputQuota
946954
)
947955
;
948956
}

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
@@ -1474,18 +1474,26 @@ text
14741474
else
14751475
{
14761476
await
1477-
promise_rejects_dom
1477+
promise_rejects_quotaexceedederror
14781478
(
14791479
t
1480-
'
1481-
QuotaExceededError
1482-
'
14831480
translator
14841481
.
14851482
translate
14861483
(
14871484
text
14881485
)
1486+
requested
1487+
=
1488+
>
1489+
requested
1490+
!
1491+
=
1492+
=
1493+
null
1494+
translator
1495+
.
1496+
inputQuota
14891497
)
14901498
;
14911499
}

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

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,12 +1337,9 @@ MAX_SAFE_INTEGER
13371337
}
13381338
;
13391339
await
1340-
promise_rejects_dom
1340+
promise_rejects_quotaexceedederror
13411341
(
13421342
test
1343-
'
1344-
QUOTA_EXCEEDED_ERR
1345-
'
13461343
backgroundFetch
13471344
.
13481345
fetch
@@ -1359,17 +1356,8 @@ txt
13591356
'
13601357
options
13611358
)
1362-
'
1363-
This
1364-
fetch
1365-
should
1366-
have
1367-
thrown
1368-
a
1369-
quota
1370-
exceeded
1371-
error
1372-
'
1359+
null
1360+
null
13731361
)
13741362
;
13751363
}

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
@@ -259,9 +259,36 @@ assert_equals
259259
(
260260
error
261261
.
262-
name
262+
constructor
263+
globalThis
264+
.
265+
QuotaExceededError
263266
'
264267
QuotaExceededError
268+
constructor
269+
match
270+
'
271+
)
272+
;
273+
assert_equals
274+
(
275+
error
276+
.
277+
quota
278+
null
279+
'
280+
quota
281+
'
282+
)
283+
;
284+
assert_equals
285+
(
286+
error
287+
.
288+
requested
289+
null
290+
'
291+
requested
265292
'
266293
)
267294
;

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
@@ -338,11 +338,8 @@ should
338338
be
339339
rejected
340340
.
341-
assert_throws_dom
341+
assert_throws_quotaexceedederror
342342
(
343-
'
344-
QuotaExceededError
345-
'
346343
(
347344
)
348345
=
@@ -393,6 +390,8 @@ referrer
393390
)
394391
;
395392
}
393+
null
394+
null
396395
)
397396
;
398397
/

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
@@ -320,15 +320,13 @@ HTTPS_ORIGIN
320320
}
321321
)
322322
;
323-
assert_throws_dom
323+
assert_throws_quotaexceedederror
324324
(
325-
'
326-
QuotaExceededError
327-
'
328325
(
329326
)
330327
=
331328
>
329+
{
332330
fetchLater
333331
(
334332
requestUrl
@@ -357,6 +355,10 @@ dataType
357355
)
358356
}
359357
)
358+
;
359+
}
360+
null
361+
null
360362
)
361363
;
362364
}

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
@@ -116,15 +116,14 @@ test
116116
)
117117
=
118118
>
119-
assert_throws_dom
119+
{
120+
assert_throws_quotaexceedederror
120121
(
121-
'
122-
QuotaExceededError
123-
'
124122
(
125123
)
126124
=
127125
>
126+
{
128127
fetchLater
129128
(
130129
'
@@ -151,7 +150,13 @@ dataType
151150
)
152151
}
153152
)
153+
;
154+
}
155+
null
156+
null
154157
)
158+
;
159+
}
155160
fetchLater
156161
(
157162
)

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
@@ -258,12 +258,9 @@ file
258258
fails
259259
.
260260
return
261-
promise_rejects_dom
261+
promise_rejects_quotaexceedederror
262262
(
263263
t
264-
'
265-
QuotaExceededError
266-
'
267264
createFileWithContents
268265
(
269266
'
@@ -347,6 +344,8 @@ laborum
347344
'
348345
inboxRootDir
349346
)
347+
null
348+
null
350349
)
351350
;
352351
}

0 commit comments

Comments
 (0)