summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/storage/storagemanager-persisted.https.any.js
blob: 70999406690fb26b7bc154093d826d7c0b8cf72c (plain)
1
2
3
4
5
6
7
8
9
10
// 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.');