| Index: third_party/WebKit/LayoutTests/http/tests/geofencing/resources/worker-service-not-available.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/geofencing/resources/worker-service-not-available.js b/third_party/WebKit/LayoutTests/http/tests/geofencing/resources/worker-service-not-available.js
|
| index 0f88dc17c38c8ae2696f334ab1555a0daa1a02a2..754a9fb86d86c49e748d9d7bfd20d67ca1c05032 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/geofencing/resources/worker-service-not-available.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/geofencing/resources/worker-service-not-available.js
|
| @@ -1,25 +1,27 @@
|
| importScripts('../../serviceworker/resources/worker-testharness.js');
|
| -importScripts('../../resources/testharness-helpers.js');
|
|
|
| promise_test(function(test) {
|
| - return assert_promise_rejects(
|
| + return promise_rejects(
|
| + test,
|
| + 'AbortError',
|
| navigator.geofencing.registerRegion(
|
| new CircularGeofencingRegion({latitude: 37.421999,
|
| longitude: -122.084015})),
|
| - 'AbortError',
|
| 'registerRegion should fail with an AbortError');
|
| }, 'registerRegion should fail');
|
|
|
| promise_test(function(test) {
|
| - return assert_promise_rejects(
|
| - navigator.geofencing.unregisterRegion(""),
|
| + return promise_rejects(
|
| + test,
|
| 'AbortError',
|
| + navigator.geofencing.unregisterRegion(""),
|
| 'unregisterRegion should fail with an AbortError');
|
| }, 'unregisterRegion should fail');
|
|
|
| promise_test(function(test) {
|
| - return assert_promise_rejects(
|
| - navigator.geofencing.getRegisteredRegions(),
|
| + return promise_rejects(
|
| + test,
|
| 'AbortError',
|
| + navigator.geofencing.getRegisteredRegions(),
|
| 'getRegisteredRegions should fail with an AbortError');
|
| }, 'getRegisteredRegions should fail');
|
|
|