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

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

Issue 366024: Add stub functions for chrome.* APIs in content scripts. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 <script>
2
3 chrome.extension.onRequest.addListener(function(msg, sender, responseFunc) {
4 if (msg == "getApi") {
5 responseFunc(JSON.parse(chrome.test.getApiDefinitions()));
6 } else if (msg == "pass") {
7 chrome.test.notifyPass();
8 } else {
9 chrome.test.notifyFail("failed");
10 }
11 });
12
13 // On first install, send a success message so the test can continue.
14 chrome.test.notifyPass();
15
16 </script>
OLDNEW
« no previous file with comments | « chrome/renderer/user_script_slave.cc ('k') | chrome/test/data/extensions/api_test/stubs/content_script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698