diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /testing/web-platform/tests/storage | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/storage')
-rw-r--r-- | testing/web-platform/tests/storage/buckets/detached-iframe.https.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/testing/web-platform/tests/storage/buckets/detached-iframe.https.html b/testing/web-platform/tests/storage/buckets/detached-iframe.https.html index a67c89efa3..6b3f3a2bd5 100644 --- a/testing/web-platform/tests/storage/buckets/detached-iframe.https.html +++ b/testing/web-platform/tests/storage/buckets/detached-iframe.https.html @@ -23,10 +23,12 @@ promise_test(async testCase => { // too late to delete buckets. await bucketManager.delete('iframe-bucket'); + const IFrameTypeError = iframe.contentWindow.TypeError; iframe.remove(); // Calling open() from a detached iframe should fail but not crash. - assert_equals(bucketManager.open('iframe-bucket'), undefined); + await promise_rejects_js(testCase, IFrameTypeError, + bucketManager.open('iframe-bucket')); }, 'Verify open() on detached iframe returns an error'); promise_test(async testCase => { @@ -39,10 +41,12 @@ promise_test(async testCase => { assert_equals(bucketKeys.length, 1); await bucketManager.delete('iframe-bucket'); + const IFrameTypeError = iframe.contentWindow.TypeError; iframe.remove(); // Calling keys() from a detached iframe should fail but not crash. - assert_equals(bucketManager.keys(), undefined); + await promise_rejects_js(testCase, IFrameTypeError, + bucketManager.keys()); }, 'Verify keys() on detached iframe returns an error'); promise_test(async testCase => { @@ -52,10 +56,12 @@ promise_test(async testCase => { await bucketManager.open('iframe-bucket'); await bucketManager.delete('iframe-bucket'); + const IFrameTypeError = iframe.contentWindow.TypeError; iframe.remove(); // Calling delete() from a detached iframe should fail but not crash. - assert_equals(bucketManager.delete('foo-bucket'), undefined); + await promise_rejects_js(testCase, IFrameTypeError, + bucketManager.delete('foo-bucket')); }, 'Verify delete() on detached iframe returns an error'); </script> |