Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /cookie-store/cookieStore_delete_basic.https.any.html - WPT Dashboard Interop Dashboard
- /cookie-store/cookieStore_delete_basic.https.any.serviceworker.html - WPT Dashboard Interop Dashboard
// META: title=Cookie Store API: cookieStore.delete() return type
// META: global=window,serviceworker
'use strict';
promise_test(async testCase => {
const p = cookieStore.delete('cookie-name');
assert_true(p instanceof Promise,
'cookieStore.delete() returns a promise');
const result = await p;
assert_equals(result, undefined,
'cookieStore.delete() promise resolves to undefined');
}, 'cookieStore.delete return type is Promise<void>');