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

Unified Diff: LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html

Issue 790683002: ServiceWorker cleanup: remove wait_for_activated(); just use wait_for_state() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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/fetch-event-after-navigation-within-page.html
diff --git a/LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html b/LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html
index 0080cb49dc43dd5223ce7051f1e96b63d46b60f5..c1c16811194ff9705a8777e943fbc2dfebad5d4b 100644
--- a/LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html
+++ b/LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html
@@ -14,7 +14,9 @@ promise_test(function(t) {
var frame;
service_worker_unregister_and_register(t, worker, scope)
- .then(function(reg) { return wait_for_activated(t, reg); })
+ .then(function(reg) {
+ return wait_for_state(t, reg.installing, 'activated');
+ })
.then(function() { return with_iframe(scope); })
.then(function(f) {
frame = f;
@@ -40,7 +42,9 @@ promise_test(function(t) {
var frame;
service_worker_unregister_and_register(t, worker, scope)
- .then(function(reg) { return wait_for_activated(t, reg); })
+ .then(function(reg) {
+ return wait_for_state(t, reg.installing, 'activated');
+ })
.then(function() { return with_iframe(scope); })
.then(function(f) {
frame = f;

Powered by Google App Engine
This is Rietveld 408576698