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