OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../../resources/js-test.js"></script> | |
5 </head> | |
6 <body> | |
7 <script> | |
8 description("Tests that all geofencing methods always reject."); | |
9 | |
10 function shouldReject(promise) | |
11 { | |
12 promise.then( | |
13 function() { testFailed("Promise unexpectedly resolved."); }, | |
14 function() { testPassed("Promise rejected as expected."); }); | |
15 } | |
16 | |
17 shouldReject(navigator.geolocation.registerRegion(new CircularRegion({latitude: 37.421999, longitude: -122.084015}))); | |
Peter Beverloo
2014/07/11 10:34:34
Ah, the Googleplex!
| |
18 shouldReject(navigator.geolocation.unregisterRegion("")); | |
19 shouldReject(navigator.geolocation.getRegisteredRegions()); | |
20 </script> | |
21 </body> | |
22 </html> | |
OLD | NEW |