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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetTest.java

Issue 2814073003: 📰 Fix SuggestionsBottomSheetTest#testContextMenu (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | 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/suggestions/SuggestionsBottomSheetTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetTest.java
index 5fb04268b838044480ce35552e2902c5773bb813..71204889839902bdd7a0faf546f3480986b00d95 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetTest.java
@@ -54,10 +54,10 @@ public class SuggestionsBottomSheetTest extends BottomSheetTestCaseBase {
ViewHolder firstCardViewHolder = RecyclerViewTestUtils.waitForView(recyclerView, 2);
assertEquals(firstCardViewHolder.getItemViewType(), ItemViewType.SNIPPET);
- assertFalse(recyclerView.onInterceptTouchEvent(createTapEvent()));
+ assertFalse(getActivity().getBottomSheet().onInterceptTouchEvent(createTapEvent()));
TestTouchUtils.longClickView(getInstrumentation(), firstCardViewHolder.itemView);
- assertTrue(recyclerView.onInterceptTouchEvent(createTapEvent()));
+ assertTrue(getActivity().getBottomSheet().onInterceptTouchEvent(createTapEvent()));
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
@@ -66,7 +66,7 @@ public class SuggestionsBottomSheetTest extends BottomSheetTestCaseBase {
}
});
- assertFalse(recyclerView.onInterceptTouchEvent(createTapEvent()));
+ assertFalse(getActivity().getBottomSheet().onInterceptTouchEvent(createTapEvent()));
}
private static MotionEvent createTapEvent() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698