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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java

Issue 1434533002: Add a few items to ContextMenu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698