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

Unified Diff: LayoutTests/http/tests/serviceworker/registration-end-to-end.html

Issue 352423005: Add ServiceWorker InstallPhaseEvent.waitUntil() layout test. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add FIXME Created 6 years, 6 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/registration-end-to-end.html
diff --git a/LayoutTests/http/tests/serviceworker/registration-end-to-end.html b/LayoutTests/http/tests/serviceworker/registration-end-to-end.html
index 94dd3bc09c851db9fa032df74d7b0f825e9f016c..212b2decc19b318e24d9d3b7ab0b4649fa253a54 100644
--- a/LayoutTests/http/tests/serviceworker/registration-end-to-end.html
+++ b/LayoutTests/http/tests/serviceworker/registration-end-to-end.html
@@ -60,7 +60,7 @@ t.step(function() {
case 'activating':
assert_equals(lastServiceWorkerState, 'installed');
break;
- case 'active':
+ case 'activated':
assert_equals(lastServiceWorkerState, 'activating');
break;
default:
@@ -68,14 +68,14 @@ t.step(function() {
}
lastServiceWorkerState = sw.state;
- if (sw.state === 'active')
+ if (sw.state === 'activated')
resolve();
});
}));
Promise.all([sawMessage, sawActive]).then(t.step_func(function() {
assert_array_equals(serviceWorkerStates,
- ['parsed', 'installing', 'installed', 'activating', 'active'],
+ ['parsed', 'installing', 'installed', 'activating', 'activated'],
'Service worker should pass through four states');
assert_equals(currentChangeCount, 0,

Powered by Google App Engine
This is Rietveld 408576698