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

Unified Diff: LayoutTests/http/tests/serviceworker/request-end-to-end.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/request-end-to-end.html
diff --git a/LayoutTests/http/tests/serviceworker/request-end-to-end.html b/LayoutTests/http/tests/serviceworker/request-end-to-end.html
index 8e459cf1d14f4520620bd0b656977727a108925d..06fb8b5221f88dc1d8c448e06782c518a601b29e 100644
--- a/LayoutTests/http/tests/serviceworker/request-end-to-end.html
+++ b/LayoutTests/http/tests/serviceworker/request-end-to-end.html
@@ -10,10 +10,7 @@ t.step(function() {
var scope = 'resources/blank.html';
service_worker_unregister_and_register(t, url, scope)
- .then(t.step_func(function(registration) {
- return wait_for_update(t, registration);
- }))
- .then(t.step_func(onUpdateFound))
+ .then(onRegister)
.catch(unreached_rejection(t));
function sendMessagePort(worker) {
@@ -22,7 +19,8 @@ t.step(function() {
return messageChannel.port1;
}
- function onUpdateFound(sw) {
+ function onRegister(registration) {
+ var sw = registration.installing;
var port = sendMessagePort(sw);
port.addEventListener('message', t.step_func(function(event) {
onMessage(event);

Powered by Google App Engine
This is Rietveld 408576698