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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java

Issue 2274293002: 📰 Keep Suggestion sections in declaration order (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix render test Created 4 years, 4 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/ntp/snippets/ArticleSnippetsTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java
index 4de20bc75155b2517306d415d16fcb4af76bddf8..89959c888722980edc809749d0ecf4f1bf17be58 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java
@@ -61,6 +61,8 @@ public void testSnippetAppearance() throws IOException {
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
public void run() {
+ setupTestData();
+
mContentView = new FrameLayout(getActivity());
mUiConfig = new UiConfig(mContentView);
@@ -72,13 +74,10 @@ public void run() {
View aboveTheFold = new View(getActivity());
-
mRecyclerView.setAboveTheFoldView(aboveTheFold);
mAdapter = new NewTabPageAdapter(mNtpManager, aboveTheFold, mSnippetsSource,
mUiConfig);
mRecyclerView.setAdapter(mAdapter);
-
- setupTestData();
}
});

Powered by Google App Engine
This is Rietveld 408576698