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

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

Issue 141533006: [Android] Move the java content/ package to content_public/ to start the split. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small fixes and findbugs line update Created 6 years, 11 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/EmailAddressDetectionTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/EmailAddressDetectionTest.java b/content/public/android/javatests/src/org/chromium/content/browser/EmailAddressDetectionTest.java
deleted file mode 100644
index 0ee13df4dc1cf5cf8e064a517de4f19f12edda18..0000000000000000000000000000000000000000
--- a/content/public/android/javatests/src/org/chromium/content/browser/EmailAddressDetectionTest.java
+++ /dev/null
@@ -1,42 +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.test.suitebuilder.annotation.MediumTest;
-
-import org.chromium.base.test.util.Feature;
-
-/**
- * Test suite for email address detection.
- */
-public class EmailAddressDetectionTest extends ContentDetectionTestBase {
-
- private static final String EMAIL_INTENT_PREFIX = "mailto:";
-
- private boolean isExpectedEmailIntent(String intentUrl, String expectedContent) {
- if (intentUrl == null) return false;
- final String expectedUrl = EMAIL_INTENT_PREFIX + urlForContent(expectedContent);
- return intentUrl.equals(expectedUrl);
- }
-
- @MediumTest
- @Feature({"ContentDetection", "TabContents"})
- public void testValidEmailAddresses() throws Throwable {
- startActivityWithTestUrl("content/content_detection/email.html");
- assertWaitForPageScaleFactorMatch(1.0f);
-
- // valid_1: i.want.a.pony@chromium.org.
- String intentUrl = scrollAndTapExpectingIntent("valid_1");
- assertTrue(isExpectedEmailIntent(intentUrl, "i.want.a.pony@chromium.org"));
-
- // valid_2: nyan_cat@chromium.org.
- intentUrl = scrollAndTapExpectingIntent("valid_2");
- assertTrue(isExpectedEmailIntent(intentUrl, "nyan_cat@chromium.org"));
-
- // valid_3: 123@456.com.
- intentUrl = scrollAndTapExpectingIntent("valid_3");
- assertTrue(isExpectedEmailIntent(intentUrl, "123@456.com"));
- }
-}

Powered by Google App Engine
This is Rietveld 408576698