OLD | NEW |
(Empty) | |
| 1 importScripts('../../serviceworker/resources/worker-test-harness.js'); |
| 2 |
| 3 promise_test(function(test) { |
| 4 return navigator.geofencing.registerRegion( |
| 5 new CircularGeofencingRegion({latitude: 37.421999, |
| 6 longitude: -122.084015})) |
| 7 .then(test.unreached_func('Promise should not have resolved')) |
| 8 .catch(function() { }); |
| 9 }, 'registerRegion should fail'); |
| 10 |
| 11 promise_test(function(test) { |
| 12 return navigator.geofencing.unregisterRegion("") |
| 13 .then(test.unreached_func('Promise should not have resolved')) |
| 14 .catch(function() { }); |
| 15 }, 'unregisterRegion should fail'); |
| 16 |
| 17 promise_test(function(test) { |
| 18 return navigator.geofencing.getRegisteredRegions() |
| 19 .then(test.unreached_func('Promise should not have resolved')) |
| 20 .catch(function() { }); |
| 21 }, 'getRegisteredRegions should fail'); |
OLD | NEW |