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

Side by Side Diff: chrome/test/data/extensions/api_test/stubs/background.js

Issue 8762014: Move another set of extension tests to manifest_version 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 chrome.extension.onRequest.addListener(function(msg, sender, responseFunc) {
6 if (msg == "getApi") {
7 responseFunc(chrome.test.getApiDefinitions());
8 } else if (msg == "pass") {
9 chrome.test.notifyPass();
10 } else if (msg.substr(0, 3) == "log") {
11 chrome.test.log(msg);
12 } else {
13 chrome.test.notifyFail("failed");
14 }
15 });
16
17 // On first install, send a success message so the test can continue.
18 chrome.test.notifyPass();
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/stubs/background.html ('k') | chrome/test/data/extensions/api_test/stubs/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698