package org.chromium.content.browser;
-import android.net.Uri;
-
import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout;
+import android.net.Uri;
+
import org.chromium.base.test.util.UrlUtils;
import org.chromium.content.browser.test.util.DOMUtils;
import org.chromium.content.browser.test.util.TestCallbackHelperContainer;
*/
protected TestCallbackHelperContainer getTestCallbackHelperContainer() {
if (mCallbackHelper == null) {
- mCallbackHelper = new TestCallbackHelperContainer(getContentView());
+ mCallbackHelper = new TestCallbackHelperContainer(getContentViewCore());
}
return mCallbackHelper;
}
* @return true if the test url is the current one, false otherwise.
*/
protected boolean isCurrentTestUrl(String testUrl) {
- return UrlUtils.getTestFileUrl(testUrl).equals(getContentView().getUrl());
+ return UrlUtils.getTestFileUrl(testUrl).equals(getContentViewCore().getUrl());
}
/**
callbackHelperContainer.getOnStartContentIntentHelper();
int currentCallCount = onStartContentIntentHelper.getCallCount();
- DOMUtils.scrollNodeIntoView(getContentView(), callbackHelperContainer, id);
- DOMUtils.clickNode(this, getContentView(), callbackHelperContainer, id);
+ DOMUtils.scrollNodeIntoView(getContentViewCore(), id);
+ DOMUtils.clickNode(this, getContentViewCore(), id);
onStartContentIntentHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_SECONDS,
TimeUnit.SECONDS);
callbackHelperContainer.getOnPageFinishedHelper();
int currentCallCount = onPageFinishedHelper.getCallCount();
- DOMUtils.scrollNodeIntoView(getContentView(), callbackHelperContainer, id);
- DOMUtils.clickNode(this, getContentView(), callbackHelperContainer, id);
+ DOMUtils.scrollNodeIntoView(getContentViewCore(), id);
+ DOMUtils.clickNode(this, getContentViewCore(), id);
onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_SECONDS,
TimeUnit.SECONDS);