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

Unified Diff: LayoutTests/fast/dom/Geolocation/geofencing-not-implemented.html

Issue 375353002: Add the first very basic bits of a geofencing API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: nits Created 6 years, 5 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/fast/dom/Geolocation/geofencing-not-implemented-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Geolocation/geofencing-not-implemented-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698