https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 6640192e5fb4ea726bfa7dee0703d566f5c89463 authored by Ms2ger on 24 November 2017, 10:22:20 UTC
Revert "[mediacapture-fromelement] Support Firefox moz-prefixed implementation in tests"
Tip revision: 6640192
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