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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java

Issue 231693002: Remove some dependencies on ContentView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java b/content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java
index 64de8457de00b6a7ec612fbb8ed7cc5e726546fb..8319e2d5baa436c6c10bbafe8eac93e0977f33a0 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java
@@ -66,8 +66,8 @@ public class ContentDetectionTestBase extends ContentShellTestBase {
callbackHelperContainer.getOnStartContentIntentHelper();
int currentCallCount = onStartContentIntentHelper.getCallCount();
- DOMUtils.scrollNodeIntoView(getContentViewCore(), callbackHelperContainer, id);
- DOMUtils.clickNode(this, getContentView(), callbackHelperContainer, id);
+ DOMUtils.scrollNodeIntoView(getContentViewCore(), id);
+ DOMUtils.clickNode(this, getContentView(), id);
onStartContentIntentHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_SECONDS,
TimeUnit.SECONDS);
@@ -87,8 +87,8 @@ public class ContentDetectionTestBase extends ContentShellTestBase {
callbackHelperContainer.getOnPageFinishedHelper();
int currentCallCount = onPageFinishedHelper.getCallCount();
- DOMUtils.scrollNodeIntoView(getContentViewCore(), callbackHelperContainer, id);
- DOMUtils.clickNode(this, getContentView(), callbackHelperContainer, id);
+ DOMUtils.scrollNodeIntoView(getContentViewCore(), id);
+ DOMUtils.clickNode(this, getContentView(), id);
onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_SECONDS,
TimeUnit.SECONDS);

Powered by Google App Engine
This is Rietveld 408576698