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