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

Unified Diff: chrome/test/data/extensions/api_test/keybinding/dont_overwrite_system/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/dont_overwrite_system/background.js
diff --git a/chrome/test/data/extensions/api_test/keybinding/dont_overwrite_system/background.js b/chrome/test/data/extensions/api_test/keybinding/dont_overwrite_system/background.js
index 105bb57a59677917f52ac47df1af7dd1661136ef..f8f9b92d7a569b2b0344c834e9309738a252c7b2 100644
--- a/chrome/test/data/extensions/api_test/keybinding/dont_overwrite_system/background.js
+++ b/chrome/test/data/extensions/api_test/keybinding/dont_overwrite_system/background.js
@@ -4,9 +4,7 @@
// Called when the user activates the command.
chrome.commands.onCommand.addListener(function(command) {
- chrome.tabs.executeScript(null, {
- code: "document.body.bgColor='" + command + "'" });
- chrome.test.notifyPass();
+ chrome.test.sendMessage(command);
});
chrome.test.notifyPass();

Powered by Google App Engine
This is Rietveld 408576698