Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /storage/storagemanager-persisted.https.any.html - WPT Dashboard Interop Dashboard
- /storage/storagemanager-persisted.https.any.worker.html - WPT Dashboard Interop Dashboard
// META: title=StorageManager: persisted()
promise_test(function() {
var promise = navigator.storage.persisted();
assert_true(promise instanceof Promise,
'navigator.storage.persisted() returned a Promise.');
return promise.then(function (result) {
assert_equals(typeof result, 'boolean', result + ' should be boolean');
});
}, 'navigator.storage.persisted() returns a promise that resolves.');