mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision b'1d9b01e2fad6af3a057d571b1e088e15fa9bc8e6'
This commit is contained in:
parent
cfef75c99b
commit
bb34f95b33
1683 changed files with 37170 additions and 4252 deletions
|
@ -13,7 +13,7 @@
|
|||
const {testPrefix, topLevelDocument} = processQueryParams();
|
||||
|
||||
// Common tests to run in all frames.
|
||||
test(() => {
|
||||
promise_test(async () => {
|
||||
assert_not_equals(document.requestStorageAccess, undefined);
|
||||
}, "[" + testPrefix + "] document.requestStorageAccess() should exist on the document interface");
|
||||
|
||||
|
@ -30,14 +30,14 @@ if (topLevelDocument) {
|
|||
promise_test(t => {
|
||||
const description = "document.requestStorageAccess() call in a detached frame";
|
||||
// Can't use `promise_rejects_dom` here, since the error comes from the wrong global.
|
||||
return RunRequestStorageAccessInDetachedFrame()
|
||||
return CreateDetachedFrame().requestStorageAccess()
|
||||
.then(t.unreached_func("Should have rejected: " + description), (e) => {
|
||||
assert_equals(e.name, 'InvalidStateError', description);
|
||||
});
|
||||
}, "[non-fully-active] document.requestStorageAccess() should reject when run in a detached frame");
|
||||
|
||||
promise_test(t => {
|
||||
return promise_rejects_dom(t, 'InvalidStateError', RunRequestStorageAccessViaDomParser(),
|
||||
return promise_rejects_dom(t, 'InvalidStateError', CreateDocumentViaDOMParser().requestStorageAccess(),
|
||||
"document.requestStorageAccess() in a detached DOMParser result");
|
||||
}, "[non-fully-active] document.requestStorageAccess() should reject when run in a detached DOMParser document");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue