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

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

Issue 517223002: ServiceWorker: Tweak layout tests based on the latest install sequence (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 4 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 877bd26ad3be33ea2adf28ce6155b344bbe82efe..ac99d5c1853e96b24c17e6df3ed755897db1c9c8 100644
--- a/LayoutTests/http/tests/serviceworker/registration-end-to-end.html
+++ b/LayoutTests/http/tests/serviceworker/registration-end-to-end.html
@@ -23,9 +23,6 @@ t.step(function() {
service_worker_unregister_and_register(
t, 'resources/end-to-end-worker.js', scope)
- .then(function(registration) {
- return wait_for_update(t, registration);
- })
.then(onRegister)
.catch(unreached_rejection(t));
@@ -35,7 +32,8 @@ t.step(function() {
return messageChannel.port1;
}
- function onRegister(sw) {
+ function onRegister(registration) {
+ var sw = registration.installing;
serviceWorkerStates.push(sw.state);
lastServiceWorkerState = sw.state;

Powered by Google App Engine
This is Rietveld 408576698