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

Unified Diff: content/test/data/service_worker/worker_activate_rejected.js

Issue 212593010: Implement the ServiceWorker "activate" event during activation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready, set... Created 6 years, 9 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: content/test/data/service_worker/worker_activate_rejected.js
diff --git a/content/test/data/service_worker/worker_install_rejected.js b/content/test/data/service_worker/worker_activate_rejected.js
similarity index 88%
copy from content/test/data/service_worker/worker_install_rejected.js
copy to content/test/data/service_worker/worker_activate_rejected.js
index c57ab6f542fa3e67484d9535f5fffec968d302ff..a5c0f58ea38aaaa9d3f94c46c3a8175bdef8dada 100644
--- a/content/test/data/service_worker/worker_install_rejected.js
+++ b/content/test/data/service_worker/worker_activate_rejected.js
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-this.oninstall = function(event) {
+this.onactivate = function(event) {
event.waitUntil(new Promise(function(resolve, reject) {
setTimeout(reject, 5);
}));

Powered by Google App Engine
This is Rietveld 408576698