| Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js
|
| index 38651374fac8be8c4be4ac7d963f1a5e7dd0dca6..1f64b56ad5c9633507f913f70f484f3e1b9c8a22 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js
|
| @@ -1,8 +1,15 @@
|
| importScripts('../../resources/test-helpers.js');
|
| importScripts('../../resources/worker-testharness.js');
|
|
|
| +// TODO(nhiroki): stop using global states because service workers can be killed
|
| +// at any point. Instead, we could post a message to the page on each event via
|
| +// Client object (http://crbug.com/558244).
|
| var events_seen = [];
|
|
|
| +// TODO(nhiroki): Move these assertions to registration-attribute.html because
|
| +// an assertion failure on the worker is not shown on the result page and
|
| +// handled as timeout. See registration-attribute-newer-worker.js for example.
|
| +
|
| assert_equals(
|
| self.registration.scope,
|
| normalizeURL('scope/registration-attribute'),
|
|
|