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

Unified Diff: LayoutTests/http/tests/serviceworker/indexeddb.html

Issue 776373003: ServiceWorker cleanup: remove wait_for_update() in favor of r.installing in most tests (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/indexeddb.html
diff --git a/LayoutTests/http/tests/serviceworker/indexeddb.html b/LayoutTests/http/tests/serviceworker/indexeddb.html
index 718f814687775569923dadd03d9e1c43bbfecb00..aab7c901f2a09ad051beb53f8a872896f9359e8d 100644
--- a/LayoutTests/http/tests/serviceworker/indexeddb.html
+++ b/LayoutTests/http/tests/serviceworker/indexeddb.html
@@ -9,9 +9,7 @@ async_test(function(t) {
service_worker_unregister_and_register(
t, 'resources/indexeddb-worker.js', scope)
.then(function(registration) {
- return wait_for_update(t, registration);
- })
- .then(function(sw) {
+ var sw = registration.installing;
var messageChannel = new MessageChannel();
messageChannel.port1.onmessage = t.step_func(onMessage);
sw.postMessage({port: messageChannel.port2}, [messageChannel.port2]);
« no previous file with comments | « LayoutTests/http/tests/serviceworker/fetch-response-xhr.html ('k') | LayoutTests/http/tests/serviceworker/installing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698