Commit 233e996a authored by kkimlabs@chromium.org's avatar kkimlabs@chromium.org

Update InfoBarUtil to use TouchCommon over TestTouchUtils.

TouchCommon utils are preferable for test use because they work
even if there is a crash dialog on the screen from a previous test.
This makes the tests run more robustly.

BUG=320084
NOTRY=true

Review URL: https://codereview.chromium.org/105173003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243203 0039d316-1c4b-4281-b951-d872f2087c98
parent 05b5e72e
......@@ -9,7 +9,7 @@ import android.view.View;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.infobar.InfoBar;
import org.chromium.content.browser.test.util.TestTouchUtils;
import org.chromium.content.browser.test.util.TouchCommon;
/**
* Utility functions for dealing with InfoBars.
......@@ -23,7 +23,7 @@ public class InfoBarUtil {
InfoBar infoBar, int buttonId, boolean click) {
View button = infoBar.getContentWrapper().findViewById(buttonId);
if (button == null) return false;
if (click) TestTouchUtils.singleClickView(test.getInstrumentation(), button);
if (click) new TouchCommon(test).singleClickView(button);
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment