swh:1:snp:b37d435721bbd450624165f334724e3585346499
Raw File
Tip revision: 259d0612af038d14f2cd889a14a3adb6c9e96d96 authored by Josh Matthews on 23 December 2018, 05:25:51 UTC
Claim to support testdriver in servodriver
Tip revision: 259d061
storagemanager-persisted.https.any.js
// 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.');
back to top