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

Side by Side Diff: LayoutTests/http/tests/geofencing/resources/worker-service-not-available.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 assert_promise_rejects(
6 navigator.geofencing.registerRegion(
7 new CircularGeofencingRegion({latitude: 37.421999,
8 longitude: -122.084015})),
9 'AbortError',
10 'registerRegion should fail with an AbortError');
11 }, 'registerRegion should fail');
12
13 promise_test(function(test) {
14 return assert_promise_rejects(
15 navigator.geofencing.unregisterRegion(""),
16 'AbortError',
17 'unregisterRegion should fail with an AbortError');
18 }, 'unregisterRegion should fail');
19
20 promise_test(function(test) {
21 return assert_promise_rejects(
22 navigator.geofencing.getRegisteredRegions(),
23 'AbortError',
24 'getRegisteredRegions should fail with an AbortError');
25 }, 'getRegisteredRegions should fail');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698