Skip to content

Commit

Permalink
[Background Sync] Add WPT for periodic-background-sync permission.
Browse files Browse the repository at this point in the history
Change-Id: Ifd7d78e61ad74b99b9f3abcb2840f2802d24a305
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1939969
Commit-Queue: Mugdha Lakhani <[email protected]>
Reviewed-by: Mike West <[email protected]>
Cr-Commit-Position: refs/heads/master@{#722122}
  • Loading branch information
Mugdha Lakhani authored and chromium-wpt-export-bot committed Dec 5, 2019
1 parent 59f24b8 commit ec26269
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions permissions/test-periodic-background-sync-permission.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<meta charset=utf-8>
<title>Test Periodic Background Sync Permission.</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id="log"></div>

<script>
promise_test(async test => {
const result = await navigator.permissions.query({name:'periodic-background-sync'});
assert_true(result instanceof PermissionStatus);
});
</script>

0 comments on commit ec26269

Please sign in to comment.