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

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

Issue 468753003: SW tests update (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 467133002 and fix test 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 13c49c7d82988088a3faa64d638f569490344a24..aa2a89d6690de5ea72fbb9c143066ecda334189e 100644
--- a/LayoutTests/http/tests/serviceworker/registration-end-to-end.html
+++ b/LayoutTests/http/tests/serviceworker/registration-end-to-end.html
@@ -22,7 +22,12 @@ t.step(function() {
};
service_worker_unregister_and_register(
- t, 'resources/end-to-end-worker.js', scope).then(t.step_func(onRegister));
+ t, 'resources/end-to-end-worker.js', scope)
+ .then(t.step_func(function(registration) {
+ return wait_for_update(t, registration);
+ }))
+ .then(t.step_func(onRegister))
+ .catch(unreached_rejection(t));
function sendMessagePort(worker, from) {
var messageChannel = new MessageChannel();
« no previous file with comments | « LayoutTests/http/tests/serviceworker/registration.html ('k') | LayoutTests/http/tests/serviceworker/registration-events.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698