https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e8aba3a48d9c0309de2225f50a33a6ff2a6a0916 authored by Kent Tamura on 21 December 2018, 05:07:49 UTC
html, xhr: Add tests for 'formdata' event
Tip revision: e8aba3a
test-background-fetch-permission.html
<!doctype html>
<meta charset=utf-8>
<title>Test Background Fetch Permission.</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id="log"></div>

<script>
  promise_test(function(test) {
    internals.runtimeFlags.backgroundFetchEnabled = true;
    return navigator.permissions.query({name:'background-fetch'}).then(function(result) {
      assert_true(result instanceof PermissionStatus);
    });
  });
</script>
back to top