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

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: use set_force_update_on_page_load() + git cl format Created 5 years, 1 month 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: chrome/test/data/extensions/api_test/service_worker/update/v2/sw.js
diff --git a/components/web_view/test_runner/public/interfaces/layout_test_runner.mojom b/chrome/test/data/extensions/api_test/service_worker/update/v2/sw.js
similarity index 67%
copy from components/web_view/test_runner/public/interfaces/layout_test_runner.mojom
copy to chrome/test/data/extensions/api_test/service_worker/update/v2/sw.js
index 22fdffaff13479b668df2cd1c157e83681778bc8..c3872ef9f6f589c28e5734af02a668c76d4fa203 100644
--- a/components/web_view/test_runner/public/interfaces/layout_test_runner.mojom
+++ b/chrome/test/data/extensions/api_test/service_worker/update/v2/sw.js
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-module web_view;
-
-interface LayoutTestRunner {
- TestFinished();
+this.onmessage = function(e) {
+ e.ports[0].postMessage('Pong from version 2');
};

Powered by Google App Engine
This is Rietveld 408576698