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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 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/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'),

Powered by Google App Engine
This is Rietveld 408576698