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

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

Issue 1404793006: Remove certain context menu items for images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: newt's nits Created 5 years, 2 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/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 b3eb87256ece6eec3336943302286ce690007d9c..73ceea9e1b5d3f83eafe5c38c6fd52959a614049 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
@@ -175,13 +175,11 @@ public class CustomTabActivityTest extends CustomTabActivityTestBase {
public void testContextMenuEntriesForImage() throws InterruptedException, TimeoutException {
startCustomTabActivityWithIntent(createMinimalCustomTabIntent());
- final int expectedMenuSize = 4;
+ final int expectedMenuSize = 2;
Menu menu = ContextMenuUtils.openContextMenu(this, getActivity().getActivityTab(), "logo");
assertEquals(expectedMenuSize, menu.size());
assertNotNull(menu.findItem(R.id.contextmenu_save_image));
assertNotNull(menu.findItem(R.id.contextmenu_open_image));
- assertNotNull(menu.findItem(R.id.contextmenu_copy_image));
- assertNotNull(menu.findItem(R.id.contextmenu_copy_image_url));
}
/**

Powered by Google App Engine
This is Rietveld 408576698