blob: c3da77d9f8cc76d0cb2523e5445d2aed7c1d97ac [file] [log] [blame]
Mugdha Lakhani4628f522018-10-05 18:44:211<!doctype html>
2<meta charset=utf-8>
3<title>Test Background Fetch Permission.</title>
4<script src=/resources/testharness.js></script>
5<script src=/resources/testharnessreport.js></script>
6<div id="log"></div>
7
8<script>
9 promise_test(function(test) {
10 internals.runtimeFlags.backgroundFetchEnabled = true;
11 return navigator.permissions.query({name:'background-fetch'}).then(function(result) {
12 assert_true(result instanceof PermissionStatus);
13 });
14 });
15</script>