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

Unified Diff: chrome/test/data/extensions/api_test/keybinding/basics/background.js

Issue 880523005: [Extensions] Simplify Extension Keybinding API Tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finnur's Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/keybinding/basics/background.js
diff --git a/chrome/test/data/extensions/api_test/keybinding/basics/background.js b/chrome/test/data/extensions/api_test/keybinding/basics/background.js
index c1bc28b904002e2ee74a83fbdd27ea280c4520a9..966e4de77a8325e0cf91444972b0c305a6573052 100644
--- a/chrome/test/data/extensions/api_test/keybinding/basics/background.js
+++ b/chrome/test/data/extensions/api_test/keybinding/basics/background.js
@@ -4,12 +4,12 @@
// Called when the user clicks on the browser action.
chrome.browserAction.onClicked.addListener(function(windowId) {
- chrome.tabs.executeScript(null, { code: "document.body.bgColor='red'" });
+ chrome.test.sendMessage('basics browser action');
});
// Called when the user activates the command.
chrome.commands.onCommand.addListener(function(command) {
- chrome.tabs.executeScript(null, { code: "document.body.bgColor='blue'" });
+ chrome.test.sendMessage(command);
});
chrome.test.notifyPass();

Powered by Google App Engine
This is Rietveld 408576698