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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/geofencing/resources/worker-service-not-available.js

Issue 1926813004: Replace assert_promise_rejects with upstream promise_rejects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update testharness.js and rebase Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
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..ca2e86830e08fc801d797c597a16bd2bfe32e274 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
@@ -2,24 +2,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');

Powered by Google App Engine
This is Rietveld 408576698