OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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.FlakyTest; | 7 import android.test.FlakyTest; |
8 import android.test.suitebuilder.annotation.LargeTest; | |
9 import android.test.suitebuilder.annotation.MediumTest; | |
10 | 8 |
11 import org.chromium.base.CommandLine; | |
12 import org.chromium.base.test.util.Feature; | 9 import org.chromium.base.test.util.Feature; |
13 import org.chromium.content.common.ContentSwitches; | 10 import org.chromium.content.common.ContentSwitches; |
14 | 11 |
15 /** | 12 /** |
16 * Test suite for phone number detection. | 13 * Test suite for phone number detection. |
17 */ | 14 */ |
18 public class PhoneNumberDetectionTest extends ContentDetectionTestBase { | 15 public class PhoneNumberDetectionTest extends ContentDetectionTestBase { |
19 | 16 |
20 private static final String TELEPHONE_INTENT_PREFIX = "tel:"; | 17 private static final String TELEPHONE_INTENT_PREFIX = "tel:"; |
21 | 18 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 217 |
221 // FR_3: (0) 237 211 992. | 218 // FR_3: (0) 237 211 992. |
222 intentUrl = scrollAndTapExpectingIntent("FR_3"); | 219 intentUrl = scrollAndTapExpectingIntent("FR_3"); |
223 assertTrue(isExpectedTelephoneIntent(intentUrl, "+33237211992")); | 220 assertTrue(isExpectedTelephoneIntent(intentUrl, "+33237211992")); |
224 | 221 |
225 // International numbers should still work. | 222 // International numbers should still work. |
226 intentUrl = scrollAndTapExpectingIntent("International"); | 223 intentUrl = scrollAndTapExpectingIntent("International"); |
227 assertTrue(isExpectedTelephoneIntent(intentUrl, "+31205045100")); | 224 assertTrue(isExpectedTelephoneIntent(intentUrl, "+31205045100")); |
228 } | 225 } |
229 } | 226 } |
OLD | NEW |