OLD | NEW |
(Empty) | |
| 1 importScripts('../../serviceworker/resources/worker-testharness.js'); |
| 2 importScripts('../../resources/testharness-helpers.js'); |
| 3 |
| 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'); |
| 12 |
| 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'); |
| 19 |
| 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'); |
OLD | NEW |