Index: LayoutTests/fast/dom/Geolocation/geofencing-not-implemented.html |
diff --git a/LayoutTests/fast/dom/Geolocation/geofencing-not-implemented.html b/LayoutTests/fast/dom/Geolocation/geofencing-not-implemented.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..063e322fb31cd79f11a8c5f45995c6c964a5d9d9 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/Geolocation/geofencing-not-implemented.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../../resources/js-test.js"></script> |
+</head> |
+<body> |
+<script> |
+description("Tests that all geofencing methods always reject."); |
+ |
+function shouldReject(promise) |
+{ |
+ promise.then( |
+ function() { testFailed("Promise unexpectedly resolved."); }, |
+ function() { testPassed("Promise rejected as expected."); }); |
+} |
+ |
+shouldReject(navigator.geolocation.registerRegion(new CircularRegion({latitude: 37.421999, longitude: -122.084015}))); |
+shouldReject(navigator.geolocation.unregisterRegion("")); |
+shouldReject(navigator.geolocation.getRegisteredRegions()); |
+</script> |
+</body> |
+</html> |