1
0
Fork 0
firefox/testing/web-platform/tests/storage/storagemanager-persisted.https.any.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

10 lines
427 B
JavaScript

// 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.');