https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 80724663b04d82106448d9afcfe1a3fa63ba9e52 authored by François Doray on 28 March 2018, 20:58:32 UTC
Revert "bluetooth: FakeBluetoothChooser impl."
Tip revision: 8072466
storagemanager-persist.https.html
<!DOCTYPE html>
<meta charset=utf-8>
<title>StorageManager: persist()</title>
<meta name="help" href="https://storage.spec.whatwg.org/#dom-storagemanager-persist">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>

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

</script>
back to top