https://github.com/web-platform-tests/wpt
Revision f61fc86b7b84666c103648d5c798322bfcc3f239 authored by James Graham on 29 January 2018, 11:46:51 UTC, committed by jgraham on 25 April 2018, 18:25:55 UTC
This is a docker image based on the Ubuntu1604 base, with the runtime
deps of Firefox and Chrome installed. There is also a shallow clone of
wpt to act as a placeholder. The start.sh script will update this
clone and start Xvfb, so it's possible to run tests.
1 parent b6fc6d7
Raw File
Tip revision: f61fc86b7b84666c103648d5c798322bfcc3f239 authored by James Graham on 29 January 2018, 11:46:51 UTC
Add a docker image designed for running tests.
Tip revision: f61fc86
storagemanager-persisted.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.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.');

</script>
back to top