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

Unified Diff: LayoutTests/http/tests/serviceworker/installing.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/installing.html
diff --git a/LayoutTests/http/tests/serviceworker/installing.html b/LayoutTests/http/tests/serviceworker/installing.html
index 696fabe67da8499c56e998913692d0cd238ab58e..9b3461bf86c7eebcfcf791fe965e47ecf8365769 100644
--- a/LayoutTests/http/tests/serviceworker/installing.html
+++ b/LayoutTests/http/tests/serviceworker/installing.html
@@ -11,7 +11,6 @@ async_test(function(t) {
var url = 'resources/empty-worker.js';
var scope = 'resources/blank.html';
var frame;
- var registration;
service_worker_unregister(t, scope)
.then(step(function() { return with_iframe(scope); }))
@@ -19,11 +18,7 @@ async_test(function(t) {
frame = f;
return navigator.serviceWorker.register(url, {scope: scope});
}))
- .then(step(function(r) {
- registration = r;
- return wait_for_update(t, registration);
- }))
- .then(step(function() {
+ .then(step(function(registration) {
var container = frame.contentWindow.navigator.serviceWorker;
assert_equals(container.controller, null);
assert_equals(registration.active, null);
« no previous file with comments | « LayoutTests/http/tests/serviceworker/indexeddb.html ('k') | LayoutTests/http/tests/serviceworker/interfaces.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698