| Index: third_party/WebKit/LayoutTests/http/tests/geofencing/service-not-available.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/geofencing/service-not-available.html b/third_party/WebKit/LayoutTests/http/tests/geofencing/service-not-available.html
|
| index 88cf994521534f95f4db7bcb67137f81b0c42af6..716145c50b8f1559f275000b688a6678b55b84c6 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/geofencing/service-not-available.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/geofencing/service-not-available.html
|
| @@ -11,34 +11,37 @@ var sw_scope = 'resources/service-worker-scope' + window.location.pathname;
|
| testRunner.setGeofencingMockProvider(false);
|
|
|
| promise_test(function(test) {
|
| - return assert_promise_rejects(
|
| + return promise_rejects(
|
| + test,
|
| + 'AbortError',
|
| service_worker_unregister_and_register(test, sw_url, sw_scope + '/register')
|
| .then(function(r) {
|
| return r.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(
|
| + return promise_rejects(
|
| + test,
|
| + 'AbortError',
|
| service_worker_unregister_and_register(test, sw_url, sw_scope + '/unregister')
|
| .then(function(r) {
|
| return r.geofencing.unregisterRegion('');
|
| }),
|
| - 'AbortError',
|
| 'unregisterRegion should fail with an AbortError');
|
| }, 'unregisterRegion should fail');
|
|
|
| promise_test(function(test) {
|
| - return assert_promise_rejects(
|
| + return promise_rejects(
|
| + test,
|
| + 'AbortError',
|
| service_worker_unregister_and_register(test, sw_url, sw_scope + '/getregions')
|
| .then(function(r) {
|
| return r.geofencing.getRegisteredRegions();
|
| }),
|
| - 'AbortError',
|
| 'getRegisteredRegions should fail with an AbortError');
|
| }, 'getRegisteredRegions should fail');
|
|
|
|
|