summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 17:26:38 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 17:26:38 +0000
commitf9b1a7b9185c0889238305d088de150d88731775 (patch)
tree10af27f4189c2d431b6fbd70127a893b7ba0a3b7 /chrome/renderer/extensions
parentfbc97c595085bd98b432963b9a627610f5294052 (diff)
downloadchromium_src-f9b1a7b9185c0889238305d088de150d88731775.zip
chromium_src-f9b1a7b9185c0889238305d088de150d88731775.tar.gz
chromium_src-f9b1a7b9185c0889238305d088de150d88731775.tar.bz2
Adding the ability to remove page actions.BUG=NoneTEST=unit test.
Review URL: http://codereview.chromium.org/131003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18910 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions')
-rw-r--r--chrome/renderer/extensions/extension_api_client_unittest.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/renderer/extensions/extension_api_client_unittest.cc b/chrome/renderer/extensions/extension_api_client_unittest.cc
index ed2cf0b..dc37c5f 100644
--- a/chrome/renderer/extensions/extension_api_client_unittest.cc
+++ b/chrome/renderer/extensions/extension_api_client_unittest.cc
@@ -88,7 +88,7 @@ TEST_F(ExtensionAPIClientTest, CallbackDispatching) {
ViewHostMsg_ExtensionRequest::Param params;
ViewHostMsg_ExtensionRequest::Read(request_msg, &params);
int callback_id = params.c;
- ASSERT_TRUE(callback_id >= 0);
+ ASSERT_GE(callback_id, 0);
// Now send the callback a response
ExtensionProcessBindings::HandleResponse(
@@ -485,4 +485,9 @@ TEST_F(ExtensionAPIClientTest, EnablePageAction) {
"\"dummy\", {tabId: 0, url: \"http://foo/\"});",
"EnablePageAction",
"[\"dummy\",{\"tabId\":0,\"url\":\"http://foo/\"}]");
+
+ ExpectJsPass("chrome.pageActions.disableForTab("
+ "\"dummy\", {tabId: 0, url: \"http://foo/\"});",
+ "DisablePageAction",
+ "[\"dummy\",{\"tabId\":0,\"url\":\"http://foo/\"}]");
}