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

Unified Diff: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java

Issue 11090050: [Android] Restore the previous behaviour of TouchCommon. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java
diff --git a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java
index fcac2b4378b3f7e50a2c1808bfe6766f4d83edab..65964630434fee11843123342acaae4ae7deb75b 100644
--- a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java
+++ b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java
@@ -78,7 +78,7 @@ public class DOMUtils {
int clickX = (int)(bounds.exactCenterX() * scale + 0.5);
int clickY = (int)(bounds.exactCenterY() * scale + 0.5);
- TouchCommon touchCommon = new TouchCommon(activityTestCase.getActivity());
+ TouchCommon touchCommon = new TouchCommon(activityTestCase);
touchCommon.singleClickView(view, clickX, clickY);
}
@@ -97,7 +97,7 @@ public class DOMUtils {
int clickX = (int)(bounds.exactCenterX() * scale + 0.5);
int clickY = (int)(bounds.exactCenterY() * scale + 0.5);
- TouchCommon touchCommon = new TouchCommon(activityTestCase.getActivity());
+ TouchCommon touchCommon = new TouchCommon(activityTestCase);
touchCommon.longPressView(view, clickX, clickY);
}
« no previous file with comments | « no previous file | content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698