Index: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/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/imported/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js |
similarity index 89% |
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js |
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js |
index 1f64b56ad5c9633507f913f70f484f3e1b9c8a22..c98acbcfb0607434e9065c7ef5624b380c64fb50 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js |
@@ -1,15 +1,8 @@ |
-importScripts('../../resources/test-helpers.js'); |
+importScripts('../../resources/test-helpers.sub.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'), |