diff options
Diffstat (limited to 'chrome/renderer/extensions')
-rw-r--r-- | chrome/renderer/extensions/extension_api_client_unittest.cc | 7 |
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, ¶ms); 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/\"}]"); } |