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

Side by Side Diff: content/public/android/javatests/src/org/chromium/content/browser/AddressDetectionTest.java

Issue 2583933003: Replace deprecated Android java test annotations (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698