mirror of
https://github.com/servo/servo.git
synced 2025-07-11 17:33:47 +01:00
15 lines
478 B
HTML
15 lines
478 B
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>
|