| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.content.browser; | 5 package org.chromium.content.browser; |
| 6 | 6 |
| 7 import android.test.suitebuilder.annotation.MediumTest; | 7 import android.support.test.filters.MediumTest; |
| 8 | 8 |
| 9 import org.chromium.base.test.util.CommandLineFlags; | 9 import org.chromium.base.test.util.CommandLineFlags; |
| 10 import org.chromium.base.test.util.Feature; | 10 import org.chromium.base.test.util.Feature; |
| 11 import org.chromium.base.test.util.RetryOnFailure; | 11 import org.chromium.base.test.util.RetryOnFailure; |
| 12 import org.chromium.content.common.ContentSwitches; | 12 import org.chromium.content.common.ContentSwitches; |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * Test suite for geographical US address detection. | 15 * Test suite for geographical US address detection. |
| 16 */ | 16 */ |
| 17 @CommandLineFlags.Add({ContentSwitches.ENABLE_CONTENT_INTENT_DETECTION}) | 17 @CommandLineFlags.Add({ContentSwitches.ENABLE_CONTENT_INTENT_DETECTION}) |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 startActivityWithTestUrl( | 105 startActivityWithTestUrl( |
| 106 "content/test/data/android/content_detection/geo_address_special
_chars.html"); | 106 "content/test/data/android/content_detection/geo_address_special
_chars.html"); |
| 107 | 107 |
| 108 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test1"), | 108 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test1"), |
| 109 "100 34th Avenue , San Francisco, CA 94121")); | 109 "100 34th Avenue , San Francisco, CA 94121")); |
| 110 | 110 |
| 111 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test2"), | 111 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test2"), |
| 112 "100 34th Avenue San Francisco, CA 94121")); | 112 "100 34th Avenue San Francisco, CA 94121")); |
| 113 } | 113 } |
| 114 } | 114 } |
| OLD | NEW |