Index: chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java |
index f95dc1c5b40c820011f02309bfda5ff71f09515b..e37e82ec4d1e454121c8087939060d077063614a 100644 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java |
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java |
@@ -180,7 +180,7 @@ public class CustomTabActivityTest extends CustomTabActivityTestBase { |
public void testContextMenuEntriesForImage() throws InterruptedException, TimeoutException { |
startCustomTabActivityWithIntent(createMinimalCustomTabIntent()); |
- final int expectedMenuSize = 8; |
+ final int expectedMenuSize = 9; |
Menu menu = ContextMenuUtils.openContextMenu(this, getActivity().getActivityTab(), "logo"); |
assertEquals(expectedMenuSize, menu.size()); |
@@ -196,6 +196,7 @@ public class CustomTabActivityTest extends CustomTabActivityTestBase { |
assertTrue(menu.findItem(R.id.contextmenu_save_image).isVisible()); |
assertTrue(menu.findItem(R.id.contextmenu_share_image).isVisible()); |
assertTrue(menu.findItem(R.id.contextmenu_open_image).isVisible()); |
+ assertTrue(menu.findItem(R.id.contextmenu_search_by_image).isVisible()); |
assertFalse(menu.findItem(R.id.contextmenu_copy_link_address).isVisible()); |
assertFalse(menu.findItem(R.id.contextmenu_copy_email_address).isVisible()); |
@@ -211,7 +212,7 @@ public class CustomTabActivityTest extends CustomTabActivityTestBase { |
public void testContextMenuEntriesForLink() throws InterruptedException, TimeoutException { |
startCustomTabActivityWithIntent(createMinimalCustomTabIntent()); |
- final int expectedMenuSize = 8; |
+ final int expectedMenuSize = 9; |
Menu menu = ContextMenuUtils.openContextMenu(this, getActivity().getActivityTab(), |
"aboutLink"); |
assertEquals(expectedMenuSize, menu.size()); |
@@ -233,6 +234,7 @@ public class CustomTabActivityTest extends CustomTabActivityTestBase { |
assertFalse(menu.findItem(R.id.contextmenu_copy_email_address).isVisible()); |
assertFalse(menu.findItem(R.id.contextmenu_save_image).isVisible()); |
assertFalse(menu.findItem(R.id.contextmenu_open_image).isVisible()); |
+ assertFalse(menu.findItem(R.id.contextmenu_search_by_image).isVisible()); |
assertFalse(menu.findItem(R.id.contextmenu_save_video).isVisible()); |
} |