| 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');
|
|
|
|
|