зеркало из https://github.com/mozilla/gecko-dev.git
Bug 990116 - Part 3: Use BROWSER_INTENT_CLASS in browser JUnit 3 tests. r=mcomella
This commit is contained in:
Родитель
659b53b14f
Коммит
26d08daab4
|
@ -13,22 +13,12 @@ import android.test.ActivityInstrumentationTestCase2;
|
|||
* BrowserTestCase provides helper methods for testing.
|
||||
*/
|
||||
public class BrowserTestCase extends ActivityInstrumentationTestCase2<Activity> {
|
||||
@SuppressWarnings("unused")
|
||||
private static String LOG_TAG = "BrowserTestCase";
|
||||
|
||||
private static final String LAUNCHER_ACTIVITY = AppConstants.ANDROID_PACKAGE_NAME + ".App";
|
||||
|
||||
private final static Class<Activity> sLauncherActivityClass;
|
||||
|
||||
static {
|
||||
try {
|
||||
sLauncherActivityClass = (Class<Activity>) Class.forName(LAUNCHER_ACTIVITY);
|
||||
} catch (ClassNotFoundException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public BrowserTestCase() {
|
||||
super(sLauncherActivityClass);
|
||||
super((Class<Activity>) AppConstants.BROWSER_INTENT_CLASS);
|
||||
}
|
||||
|
||||
public Context getApplicationContext() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче