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

Unified Diff: LayoutTests/http/tests/serviceworker/uncontrolled-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
« no previous file with comments | « LayoutTests/http/tests/serviceworker/sync-xhr-doesnt-deadlock.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/uncontrolled-page.html
diff --git a/LayoutTests/http/tests/serviceworker/uncontrolled-page.html b/LayoutTests/http/tests/serviceworker/uncontrolled-page.html
index 13da906aafc80533d57c7d48c2ff85abfd95aa9e..11aa6cea7dc58f12c7bcf7bf7c3176c7e7df567f 100644
--- a/LayoutTests/http/tests/serviceworker/uncontrolled-page.html
+++ b/LayoutTests/http/tests/serviceworker/uncontrolled-page.html
@@ -22,7 +22,9 @@ var worker = 'resources/fail-on-fetch-worker.js';
async_test(function(t) {
var scope = 'resources/scope/uncontrolled-page/';
service_worker_unregister_and_register(t, worker, scope)
- .then(function(reg) { return wait_for_activated(t, reg, scope); })
+ .then(function(reg) {
+ return wait_for_state(t, reg.installing, 'activated');
+ })
.then(function() {
return fetch_url('/serviceworker/resources/simple.json');
})
@@ -34,4 +36,4 @@ async_test(function(t) {
assert_unreached(reason.message);
}));
}, 'Fetch events should not go through uncontrolled page.');
-</script>
+</script>
« no previous file with comments | « LayoutTests/http/tests/serviceworker/sync-xhr-doesnt-deadlock.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698