blob: edbe67fae2c1e17bc7ce3aa3c3d1dc9db7982cac (
plain)
1
2
3
4
5
6
7
8
9
|
// META: title=StorageManager: result of persist() matches result of persisted()
promise_test(async t => {
var persistResult = await navigator.storage.persist();
assert_equals(typeof persistResult, 'boolean', persistResult + ' should be boolean');
var persistedResult = await navigator.storage.persisted();
assert_equals(typeof persistedResult, 'boolean', persistedResult + ' should be boolean');
assert_equals(persistResult, persistedResult);
}, 'navigator.storage.persist() resolves to a value that matches navigator.storage.persisted()');
|