Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / geofencing / resources / worker-service-not-available.js
blob0f88dc17c38c8ae2696f334ab1555a0daa1a02a2
1 importScripts('../../serviceworker/resources/worker-testharness.js');
2 importScripts('../../resources/testharness-helpers.js');
4 promise_test(function(test) {
5 return assert_promise_rejects(
6 navigator.geofencing.registerRegion(
7 new CircularGeofencingRegion({latitude: 37.421999,
8 longitude: -122.084015})),
9 'AbortError',
10 'registerRegion should fail with an AbortError');
11 }, 'registerRegion should fail');
13 promise_test(function(test) {
14 return assert_promise_rejects(
15 navigator.geofencing.unregisterRegion(""),
16 'AbortError',
17 'unregisterRegion should fail with an AbortError');
18 }, 'unregisterRegion should fail');
20 promise_test(function(test) {
21 return assert_promise_rejects(
22 navigator.geofencing.getRegisteredRegions(),
23 'AbortError',
24 'getRegisteredRegions should fail with an AbortError');
25 }, 'getRegisteredRegions should fail');