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

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

Issue 543203003: Fix the geofencing test to not break if the promises resolve asynchronously. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments Created 6 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 importScripts('../../serviceworker/resources/worker-test-harness.js');
2
3 promise_test(function(test) {
4 return navigator.geofencing.registerRegion(
5 new CircularGeofencingRegion({latitude: 37.421999,
6 longitude: -122.084015}))
7 .then(test.unreached_func('Promise should not have resolved'))
8 .catch(function() { });
9 }, 'registerRegion should fail');
10
11 promise_test(function(test) {
12 return navigator.geofencing.unregisterRegion("")
13 .then(test.unreached_func('Promise should not have resolved'))
14 .catch(function() { });
15 }, 'unregisterRegion should fail');
16
17 promise_test(function(test) {
18 return navigator.geofencing.getRegisteredRegions()
19 .then(test.unreached_func('Promise should not have resolved'))
20 .catch(function() { });
21 }, 'getRegisteredRegions should fail');
OLDNEW
« no previous file with comments | « LayoutTests/geofencing/geofencing-not-implemented-expected.txt ('k') | LayoutTests/http/tests/geofencing/service-worker.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698