OLD | NEW |
| (Empty) |
1 importScripts('../../serviceworker/resources/worker-testharness.js'); | |
2 | |
3 promise_test(function(test) { | |
4 return promise_rejects( | |
5 test, | |
6 'AbortError', | |
7 navigator.geofencing.registerRegion( | |
8 new CircularGeofencingRegion({latitude: 37.421999, | |
9 longitude: -122.084015})), | |
10 'registerRegion should fail with an AbortError'); | |
11 }, 'registerRegion should fail'); | |
12 | |
13 promise_test(function(test) { | |
14 return promise_rejects( | |
15 test, | |
16 'AbortError', | |
17 navigator.geofencing.unregisterRegion(""), | |
18 'unregisterRegion should fail with an AbortError'); | |
19 }, 'unregisterRegion should fail'); | |
20 | |
21 promise_test(function(test) { | |
22 return promise_rejects( | |
23 test, | |
24 'AbortError', | |
25 navigator.geofencing.getRegisteredRegions(), | |
26 'getRegisteredRegions should fail with an AbortError'); | |
27 }, 'getRegisteredRegions should fail'); | |
OLD | NEW |