Index: LayoutTests/geofencing/geofencing-not-implemented.html |
diff --git a/LayoutTests/geofencing/geofencing-not-implemented.html b/LayoutTests/geofencing/geofencing-not-implemented.html |
deleted file mode 100644 |
index bc82d37b69edd31710ce52edf5eaa3c357e07620..0000000000000000000000000000000000000000 |
--- a/LayoutTests/geofencing/geofencing-not-implemented.html |
+++ /dev/null |
@@ -1,38 +0,0 @@ |
-<!DOCTYPE html> |
-<title>Tests that all geofencing methods always reject.</title> |
-<script src="../resources/testharness.js"></script> |
-<script src="../resources/testharnessreport.js"></script> |
-<script> |
-// Copied from http/tests/serviceworker/resources/worker-test-harness.js, can be |
-// removed once this makes it into testharness.js itself. |
-function promise_test(func, name, properties) { |
- properties = properties || {}; |
- var test = async_test(name, properties); |
- Promise.resolve(test.step(func, test, test)) |
- .then(function() { test.done(); }) |
- .catch(test.step_func(function(value) { |
- throw value; |
- })); |
-} |
- |
-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'); |
- |
-</script> |