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

Side by Side Diff: LayoutTests/http/tests/geofencing/resources/worker.js

Issue 702983002: Update geofencing layout tests to use mock service. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix after rebase Created 6 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 importScripts('../../serviceworker/resources/worker-testharness.js');
2 importScripts('../../resources/testharness-helpers.js');
3
4 promise_test(function(test) {
5 return navigator.geofencing.registerRegion(
6 new CircularGeofencingRegion({latitude: 37.421999,
7 longitude: -122.084015}))
8 .then(test.unreached_func('Promise should not have resolved'))
9 .catch(function() { });
10 }, 'registerRegion should fail');
11
12 promise_test(function(test) {
13 return navigator.geofencing.unregisterRegion("")
14 .then(test.unreached_func('Promise should not have resolved'))
15 .catch(function() { });
16 }, 'unregisterRegion should fail');
17
18 promise_test(function(test) {
19 return navigator.geofencing.getRegisteredRegions()
20 .then(test.unreached_func('Promise should not have resolved'))
21 .catch(function() { });
22 }, 'getRegisteredRegions should fail');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698