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

Unified Diff: LayoutTests/http/tests/serviceworker/registration-events.html

Issue 466723002: ServiceWorker: Enable ServiceWorkerRegistration and update layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@updatefound
Patch Set: rebase Created 6 years, 4 months 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/registration-events.html
diff --git a/LayoutTests/http/tests/serviceworker/registration-events.html b/LayoutTests/http/tests/serviceworker/registration-events.html
index cefaee73999b4326b818becd0c6997c5231932dd..cc33ca3514a1a66ce06ee5883a5c80e565596bb9 100644
--- a/LayoutTests/http/tests/serviceworker/registration-events.html
+++ b/LayoutTests/http/tests/serviceworker/registration-events.html
@@ -8,7 +8,12 @@ var t = async_test('Registration: events');
t.step(function() {
var scope = '/in-scope/';
service_worker_unregister_and_register(
- t, 'resources/events-worker.js', scope).then(t.step_func(onRegister));
+ t, 'resources/events-worker.js', scope)
+ .then(t.step_func(function(registration) {
+ return wait_for_update(t, registration);
+ }))
+ .then(t.step_func(onRegister))
+ .catch(unreached_rejection(t));
function sendMessagePort(worker, from) {
var messageChannel = new MessageChannel();

Powered by Google App Engine
This is Rietveld 408576698