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

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

Issue 2790893004: Delete Android content detectors. (Closed)
Patch Set: Rebase Created 3 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/ClickListenerTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/ClickListenerTest.java b/content/public/android/javatests/src/org/chromium/content/browser/ClickListenerTest.java
deleted file mode 100644
index c16cb9a8e899e353314e4dd288b392d0ee0dd6e2..0000000000000000000000000000000000000000
--- a/content/public/android/javatests/src/org/chromium/content/browser/ClickListenerTest.java
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.content.browser;
-
-import android.support.test.filters.MediumTest;
-
-import org.chromium.base.test.util.CommandLineFlags;
-import org.chromium.base.test.util.Feature;
-import org.chromium.base.test.util.RetryOnFailure;
-import org.chromium.content.common.ContentSwitches;
-
-/**
- * Test suite for click listener validation in content detection.
- */
-@CommandLineFlags.Add({ContentSwitches.ENABLE_CONTENT_INTENT_DETECTION})
-public class ClickListenerTest extends ContentDetectionTestBase {
-
- @MediumTest
- @Feature({"ContentDetection", "TabContents"})
- @RetryOnFailure
- public void testClickContentOnLink() throws Throwable {
- startActivityWithTestUrl(
- "content/test/data/android/content_detection/click_listeners.html");
-
- // Clicks on addresses in links should change the url.
- scrollAndTapNavigatingOut("linktest");
- assertTrue(isCurrentTestUrl("content/test/data/android/content_detection/empty.html"));
- }
-
- @MediumTest
- @Feature({"ContentDetection", "TabContents"})
- public void testClickContentOnJSListener1() throws Throwable {
- startActivityWithTestUrl(
- "content/test/data/android/content_detection/click_listeners.html");
-
- // Clicks on addresses in elements listening to click events should be
- // processed normally without address detection.
- scrollAndTapNavigatingOut("clicktest1");
- assertTrue(isCurrentTestUrl("content/test/data/android/content_detection/empty.html"));
- }
-
- @MediumTest
- @Feature({"ContentDetection", "TabContents"})
- public void testClickContentOnJSListener2() throws Throwable {
- startActivityWithTestUrl(
- "content/test/data/android/content_detection/click_listeners.html");
-
- // Same as previous test, but using addEventListener instead of onclick.
- scrollAndTapNavigatingOut("clicktest2");
- assertTrue(isCurrentTestUrl("content/test/data/android/content_detection/empty.html"));
- }
-}

Powered by Google App Engine
This is Rietveld 408576698