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.support.test.filters.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.DisabledTest; | 10 import org.chromium.base.test.util.DisabledTest; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test3"), | 56 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test3"), |
57 "1818 Library Street Suite 400, VA 20190")); | 57 "1818 Library Street Suite 400, VA 20190")); |
58 | 58 |
59 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test4"), | 59 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test4"), |
60 "1818 Library Street Suite 400, VA 20190")); | 60 "1818 Library Street Suite 400, VA 20190")); |
61 } | 61 } |
62 | 62 |
63 //@MediumTest | 63 //@MediumTest |
64 //@Feature({"ContentDetection", "TabContents"}) | 64 //@Feature({"ContentDetection", "TabContents"}) |
| 65 // crbug.com/671647 |
65 @DisabledTest | 66 @DisabledTest |
66 public void testAddressLimits() throws Throwable { | 67 public void testAddressLimits() throws Throwable { |
67 startActivityWithTestUrl( | 68 startActivityWithTestUrl( |
68 "content/test/data/android/content_detection/geo_address_limits.
html"); | 69 "content/test/data/android/content_detection/geo_address_limits.
html"); |
69 | 70 |
70 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test1"), | 71 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test1"), |
71 "2590 Pearl Street Suite 100 Boulder, CO 80302")); | 72 "2590 Pearl Street Suite 100 Boulder, CO 80302")); |
72 | 73 |
73 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test2"), | 74 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test2"), |
74 "6425 Penn Ave. Suite 700 Pittsburgh, PA 15206")); | 75 "6425 Penn Ave. Suite 700 Pittsburgh, PA 15206")); |
(...skipping 18 matching lines...) Expand all Loading... |
93 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test2"), | 94 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test2"), |
94 "57th Street and Lake Shore Drive Chicago, IL 60637")); | 95 "57th Street and Lake Shore Drive Chicago, IL 60637")); |
95 | 96 |
96 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test3"), | 97 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test3"), |
97 "57th Street and Lake Shore Drive Chicago, IL 60637")); | 98 "57th Street and Lake Shore Drive Chicago, IL 60637")); |
98 | 99 |
99 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test4"), | 100 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test4"), |
100 "79th Street, New York, NY, 10024-5192")); | 101 "79th Street, New York, NY, 10024-5192")); |
101 } | 102 } |
102 | 103 |
103 @MediumTest | 104 //@MediumTest |
104 @Feature({"ContentDetection", "TabContents"}) | 105 //@Feature({"ContentDetection", "TabContents"}) |
105 @RetryOnFailure | 106 //@RetryOnFailure |
| 107 // crbug.com/708176 |
| 108 @DisabledTest |
106 public void testSpecialChars() throws Throwable { | 109 public void testSpecialChars() throws Throwable { |
107 startActivityWithTestUrl( | 110 startActivityWithTestUrl( |
108 "content/test/data/android/content_detection/geo_address_special
_chars.html"); | 111 "content/test/data/android/content_detection/geo_address_special
_chars.html"); |
109 | 112 |
110 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test1"), | 113 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test1"), |
111 "100 34th Avenue , San Francisco, CA 94121")); | 114 "100 34th Avenue , San Francisco, CA 94121")); |
112 | 115 |
113 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test2"), | 116 assertTrue(isExpectedGeoIntent(scrollAndTapExpectingIntent("test2"), |
114 "100 34th Avenue San Francisco, CA 94121")); | 117 "100 34th Avenue San Francisco, CA 94121")); |
115 } | 118 } |
116 } | 119 } |
OLD | NEW |