OLD | NEW |
---|---|
(Empty) | |
1 importScripts('../../serviceworker/resources/worker-test-harness.js'); | |
2 | |
3 promise_test(function(test) { | |
4 return navigator.geofencing.registerRegion(new CircularGeofencingRegion({lat itude: 37.421999, longitude: -122.084015})) | |
jsbell
2014/09/11 21:13:35
Maybe break this line (and the similarly long line
Marijn Kruisselbrink
2014/09/11 21:54:26
Done. And I changed the indentation a bit as well,
| |
5 .then(test.unreached_func('Promise should not have resolved')) | |
6 .catch(function() {}); | |
7 }, 'registerRegion should fail'); | |
8 | |
9 promise_test(function(test) { | |
10 return navigator.geofencing.unregisterRegion("") | |
11 .then(test.unreached_func('Promise should not have resolved')) | |
12 .catch(function() {}); | |
13 }, 'unregisterRegion should fail'); | |
14 | |
15 promise_test(function(test) { | |
16 return navigator.geofencing.getRegisteredRegions() | |
17 .then(test.unreached_func('Promise should not have resolved')) | |
18 .catch(function() {}); | |
19 }, 'getRegisteredRegions should fail'); | |
OLD | NEW |