This source file includes following definitions.
- Feature
- testClickContentOnLink
- Feature
- testClickContentOnJSListener1
- Feature
- testClickContentOnJSListener2
package org.chromium.content.browser;
import android.test.suitebuilder.annotation.MediumTest;
import org.chromium.base.test.util.Feature;
public class ClickListenerTest extends ContentDetectionTestBase {
@MediumTest
@Feature({"ContentDetection", "TabContents"})
public void testClickContentOnLink() throws Throwable {
startActivityWithTestUrl("content/content_detection/click_listeners.html");
assertWaitForPageScaleFactorMatch(1.0f);
scrollAndTapNavigatingOut("linktest");
assertTrue(isCurrentTestUrl("content/content_detection/empty.html"));
}
@MediumTest
@Feature({"ContentDetection", "TabContents"})
public void testClickContentOnJSListener1() throws Throwable {
startActivityWithTestUrl("content/content_detection/click_listeners.html");
assertWaitForPageScaleFactorMatch(1.0f);
scrollAndTapNavigatingOut("clicktest1");
assertTrue(isCurrentTestUrl("content/content_detection/empty.html"));
}
@MediumTest
@Feature({"ContentDetection", "TabContents"})
public void testClickContentOnJSListener2() throws Throwable {
startActivityWithTestUrl("content/content_detection/click_listeners.html");
assertWaitForPageScaleFactorMatch(1.0f);
scrollAndTapNavigatingOut("clicktest2");
assertTrue(isCurrentTestUrl("content/content_detection/empty.html"));
}
}