Index: LayoutTests/http/tests/geofencing/resources/worker.js |
diff --git a/LayoutTests/http/tests/geofencing/resources/worker.js b/LayoutTests/http/tests/geofencing/resources/worker.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d48c15f428207d16228b803c78bf8469656a0277 |
--- /dev/null |
+++ b/LayoutTests/http/tests/geofencing/resources/worker.js |
@@ -0,0 +1,21 @@ |
+importScripts('../../serviceworker/resources/worker-test-harness.js'); |
+ |
+promise_test(function(test) { |
+ return navigator.geofencing.registerRegion( |
+ new CircularGeofencingRegion({latitude: 37.421999, |
+ longitude: -122.084015})) |
+ .then(test.unreached_func('Promise should not have resolved')) |
+ .catch(function() { }); |
+ }, 'registerRegion should fail'); |
+ |
+promise_test(function(test) { |
+ return navigator.geofencing.unregisterRegion("") |
+ .then(test.unreached_func('Promise should not have resolved')) |
+ .catch(function() { }); |
+ }, 'unregisterRegion should fail'); |
+ |
+promise_test(function(test) { |
+ return navigator.geofencing.getRegisteredRegions() |
+ .then(test.unreached_func('Promise should not have resolved')) |
+ .catch(function() { }); |
+ }, 'getRegisteredRegions should fail'); |