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

Unified Diff: LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.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/serviceworkerobject-scripturl.html
diff --git a/LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html b/LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html
index e13505345eb101f41b30114ca94af5041b58d5ae..ab88de16bbe03cfc7f12a9e92a93f38319faa996 100644
--- a/LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html
+++ b/LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html
@@ -11,13 +11,11 @@ function url_test(name, url) {
var expectedURL = normalizeURL(url);
service_worker_unregister_and_register(t, url, scope)
.then(function(registration) {
- return wait_for_update(t, registration);
+ var worker = registration.installing;
+ assert_equals(worker.scriptURL, expectedURL,
+ 'Returned ServiceWorker object should have scriptURL');
+ service_worker_unregister_and_done(t, scope);
})
- .then(t.step_func(function(worker) {
- assert_equals(worker.scriptURL, expectedURL,
- 'Returned ServiceWorker object should have scriptURL');
- service_worker_unregister_and_done(t, scope);
- }))
.catch(unreached_rejection(t));
}, 'Verify the scriptURL property: ' + name);
}

Powered by Google App Engine
This is Rietveld 408576698