mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +01:00
Update web-platform-tests to revision b'bcf4a27c0a9dbb07d974a880acb26eb289a85c7e'
This commit is contained in:
parent
293c8623fa
commit
61b963c73e
183 changed files with 3880 additions and 1012 deletions
|
@ -20,7 +20,7 @@ promise_test(async t => {
|
|||
|
||||
// At this point the iframe is detached and unloaded, and its execution
|
||||
// context is gone.
|
||||
await promise_rejects_dom(t, 'NotFoundError', iframeDOMException, iframeNavigator.subApps.remove('sub-app-id'));
|
||||
await promise_rejects_dom(t, 'NotFoundError', iframeDOMException, iframeNavigator.subApps.remove('/sub-app-id'));
|
||||
}, "The object is no longer associated to a document.");
|
||||
|
||||
promise_test(async t => {
|
||||
|
@ -31,11 +31,11 @@ promise_test(async t => {
|
|||
const iframeDOMException = iframe.contentWindow.DOMException;
|
||||
t.add_cleanup(() => iframe.remove());
|
||||
|
||||
await promise_rejects_dom(t, 'InvalidStateError', iframeDOMException, iframeNavigator.subApps.remove('sub-app-id'));
|
||||
await promise_rejects_dom(t, 'InvalidStateError', iframeDOMException, iframeNavigator.subApps.remove('/sub-app-id'));
|
||||
}, "API is only supported in top-level browsing contexts.");
|
||||
|
||||
promise_test(async t => {
|
||||
const full_url = document.location.origin + '/sub-app';
|
||||
const full_url = document.location.origin + '/sub-app-id';
|
||||
|
||||
await promise_rejects_dom(t, 'NotSupportedError', navigator.subApps.remove(full_url));
|
||||
}, 'API supports only root-relative paths.');
|
||||
|
@ -46,7 +46,7 @@ promise_test(async t => {
|
|||
mockSubAppsService = null;
|
||||
});
|
||||
await createMockSubAppsService(Status.FAILURE, [], []);
|
||||
return promise_rejects_dom(t, 'OperationError', navigator.subApps.remove('sub-app-id'));
|
||||
return promise_rejects_dom(t, 'OperationError', navigator.subApps.remove('/sub-app-id'));
|
||||
}, 'Remove call failed.');
|
||||
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue