Revision 1e5a5fefe15c4fcc1a3267daf1d75598f736c82f authored by Eric Willigers on 13 April 2018, 16:48:17 UTC, committed by GitHub on 13 April 2018, 16:48:17 UTC
Accept variation in serialization of 'background'
cookieStore_get_delete_basic.tentative.window.js
'use strict';
// Workaround because add_cleanup doesn't support async functions yet.
// See https://github.com/w3c/web-platform-tests/issues/6075
async function async_cleanup(cleanup_function) {
try {
await cleanup_function();
} catch (e) {
// Errors in cleanup functions shouldn't result in test failures.
}
}
promise_test(async testCase => {
await cookieStore.set('cookie-name', 'cookie-value');
await cookieStore.delete('cookie-name');
const cookie = await cookieStore.get();
assert_equals(cookie, null);
await async_cleanup(() => cookieStore.delete('cookie-name'));
}, 'cookieStore.get returns null for a cookie deleted by cookieStore.delete');
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...