Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: LayoutTests/geofencing/geofencing-not-implemented.html

Issue 623813002: Blink side of exposing the service worker registration associated with geofencing API calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: hopefully correctly fix compile Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/geofencing/apis_not_implemented.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/http/tests/geofencing/apis_not_implemented.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698