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

Unified Diff: chrome/test/data/extensions/api_test/service_worker/update/v2/sw.js

Issue 1432823003: Add a test to cover service worker update codepath when extension is updated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove SW.register() from v2 extension Created 5 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
« no previous file with comments | « chrome/test/data/extensions/api_test/service_worker/update/v2/manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/service_worker/update/v2/sw.js
diff --git a/mojo/public/interfaces/bindings/tests/scoping.mojom b/chrome/test/data/extensions/api_test/service_worker/update/v2/sw.js
similarity index 54%
copy from mojo/public/interfaces/bindings/tests/scoping.mojom
copy to chrome/test/data/extensions/api_test/service_worker/update/v2/sw.js
index 2e9edb10b4eddfca591bdf64966238b9a75fbe2f..a33255c974a272d2cd7100bdd3513b7594957db4 100644
--- a/mojo/public/interfaces/bindings/tests/scoping.mojom
+++ b/chrome/test/data/extensions/api_test/service_worker/update/v2/sw.js
@@ -2,16 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-module mojo.test;
-
-interface A {
- GetB(B& b);
-};
-
-interface B {
- GetC(C& c);
+this.onmessage = function(e) {
+ e.ports[0].postMessage('Pong from version 2');
};
-interface C {
- D();
+this.oninstall = function(e) {
+ e.waitUntil(self.skipWaiting());
};
« no previous file with comments | « chrome/test/data/extensions/api_test/service_worker/update/v2/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698