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

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

Issue 10826157: Check for warnings when loading extensions in browser tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ExtensionTerminalPrivateApiTest.TerminalTest Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <script>
2 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5
6 chrome.extension.onRequest.addListener(function(msg, sender, responseFunc) {
7 if (msg == "getApi") {
8 responseFunc(chrome.test.getApiDefinitions());
9 } else if (msg == "pass") {
10 chrome.test.notifyPass();
11 } else if (msg.substr(0, 3) == "log") {
12 chrome.test.log(msg);
13 } else {
14 chrome.test.notifyFail("failed");
15 }
16 });
17
18 // On first install, send a success message so the test can continue.
19 chrome.test.notifyPass();
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698