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

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: s/eventsSeen/events_seen/ 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..688fc0cec481a2de6eec56fee555affb2303987a 100644
--- a/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html
+++ b/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html
@@ -15,9 +15,19 @@ promise_test(function(t) {
})
.then(function() { return with_iframe(scope); })
.then(function(frame) {
+ var expected_events_seen = [
+ 'updatefound',
+ 'install',
+ 'statechange(installed)',
+ 'statechange(activating)',
+ 'activate',
+ 'statechange(activated)',
+ 'fetch',
+ ];
+
assert_equals(
frame.contentDocument.body.textContent,
- 'PASS',
+ expected_events_seen.toString(),
'Service Worker should respond to fetch');
frame.remove();
return service_worker_unregister_and_done(t, scope);
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698