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

Unified Diff: LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html

Issue 861743002: ServiceWorker: Test ServiceWorkerGlobalScope.registration attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@expose_swreg2
Patch Set: Created 5 years, 11 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: LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html
diff --git a/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html b/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html
index 3ea489192f7243e499e99e1980c4d655cac4887d..fc4128f06de7b89dd5ed32838a2374f5c53fc3af 100644
--- a/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html
+++ b/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html
@@ -15,9 +15,18 @@ promise_test(function(t) {
})
.then(function() { return with_iframe(scope); })
.then(function(frame) {
+ var eventsSeen = [];
falken 2015/01/28 13:47:24 nit: events_seen, even better expected_events_seen
nhiroki 2015/01/28 14:25:05 Done.
+ eventsSeen.push('updatefound');
+ eventsSeen.push('install');
+ eventsSeen.push('statechange(installed)');
+ eventsSeen.push('statechange(activating)');
+ eventsSeen.push('activate');
+ eventsSeen.push('statechange(activated)');
+ eventsSeen.push('fetch');
+
assert_equals(
frame.contentDocument.body.textContent,
- 'PASS',
+ eventsSeen.toString(),
'Service Worker should respond to fetch');
frame.remove();
return service_worker_unregister_and_done(t, scope);

Powered by Google App Engine
This is Rietveld 408576698