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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js

Issue 2751523008: Update Background Fetch IDLs following spec changes (Closed)
Patch Set: Update Background Fetch IDLs following spec changes Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetched-event-worker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js b/third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js
index 6f60c8c7d34e9070122edc3356600950a59611b5..e824692e928ed97c5e9cb42bc7d7d3f7908a33ac 100644
--- a/third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js
+++ b/third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js
@@ -5,22 +5,22 @@ importScripts('/resources/testharness.js');
test(function() {
assert_own_property(self, 'BackgroundFetchFailEvent');
- // The `tag` and `failedFetches` are required options in the
+ // The `tag` and `fetches` are required options in the
// BackgroundFetchFailEventInit. The latter must be a sequence of
- // BackgroundFetchSettledRequest instances.
+ // BackgroundFetchSettledFetch instances.
assert_throws(null, () => new BackgroundFetchFailEvent('BackgroundFetchFailEvent'));
assert_throws(null, () => new BackgroundFetchFailEvent('BackgroundFetchFailEvent', {}));
assert_throws(null, () => new BackgroundFetchFailEvent('BackgroundFetchFailEvent', { tag: 'foo' }));
- assert_throws(null, () => new BackgroundFetchFailEvent('BackgroundFetchFailEvent', { tag: 'foo', failedFetches: 'bar' }));
+ assert_throws(null, () => new BackgroundFetchFailEvent('BackgroundFetchFailEvent', { tag: 'foo', fetches: 'bar' }));
- const failedFetches = [
- new BackgroundFetchSettledRequest(new Request('non-existing-image.png'), new Response()),
- new BackgroundFetchSettledRequest(new Request('non-existing-image-2.png'), new Response())
+ const fetches = [
+ new BackgroundFetchSettledFetch(new Request('non-existing-image.png'), new Response()),
+ new BackgroundFetchSettledFetch(new Request('non-existing-image-2.png'), new Response())
];
const event = new BackgroundFetchFailEvent('BackgroundFetchFailEvent', {
tag: 'my-tag',
- failedFetches
+ fetches
});
assert_equals(event.type, 'BackgroundFetchFailEvent');
@@ -28,8 +28,8 @@ test(function() {
assert_equals(event.bubbles, false);
assert_equals(event.tag, 'my-tag');
- assert_true(Array.isArray(event.failedFetches));
- assert_array_equals(event.failedFetches, failedFetches);
+ assert_true(Array.isArray(event.fetches));
+ assert_array_equals(event.fetches, fetches);
assert_inherits(event, 'waitUntil');
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetched-event-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698