Change a field name in EndToEndTestUtils.

This commit is contained in:
youtaol
2012-08-01 10:11:52 +08:00
parent b052c34e76
commit a08cbe4265
2 changed files with 4 additions and 4 deletions
@@ -280,7 +280,7 @@ public class CreateAndSendTrackTest extends ActivityInstrumentationTestCase2<Tra
EndToEndTestUtils.findMenuItem(activityMyTracks.getString(R.string.menu_markers), true); EndToEndTestUtils.findMenuItem(activityMyTracks.getString(R.string.menu_markers), true);
instrumentation.waitForIdleSync(); instrumentation.waitForIdleSync();
if (EndToEndTestUtils.hasGPSSingal) { if (EndToEndTestUtils.hasGpsSingal) {
assertTrue(EndToEndTestUtils.SOLO.getCurrentListViews().get(0).getCount() > 0); assertTrue(EndToEndTestUtils.SOLO.getCurrentListViews().get(0).getCount() > 0);
} else { } else {
assertTrue(EndToEndTestUtils.SOLO.getCurrentListViews().get(0).getCount() == 0); assertTrue(EndToEndTestUtils.SOLO.getCurrentListViews().get(0).getCount() == 0);
@@ -301,7 +301,7 @@ public class CreateAndSendTrackTest extends ActivityInstrumentationTestCase2<Tra
EndToEndTestUtils.rotateAllActivities(); EndToEndTestUtils.rotateAllActivities();
EndToEndTestUtils.enterTextAvoidSoftKeyBoard(0, WAYPOINT_NAME); EndToEndTestUtils.enterTextAvoidSoftKeyBoard(0, WAYPOINT_NAME);
EndToEndTestUtils.SOLO.clickOnButton(activityMyTracks.getString(R.string.generic_add)); EndToEndTestUtils.SOLO.clickOnButton(activityMyTracks.getString(R.string.generic_add));
if (EndToEndTestUtils.hasGPSSingal) { if (EndToEndTestUtils.hasGpsSingal) {
assertTrue(EndToEndTestUtils.SOLO.searchText(WAYPOINT_NAME)); assertTrue(EndToEndTestUtils.SOLO.searchText(WAYPOINT_NAME));
} else { } else {
assertFalse(EndToEndTestUtils.SOLO.searchText(WAYPOINT_NAME)); assertFalse(EndToEndTestUtils.SOLO.searchText(WAYPOINT_NAME));
@@ -125,7 +125,7 @@ public class EndToEndTestUtils {
// Android OS. // Android OS.
static boolean hasActionBar = false; static boolean hasActionBar = false;
static boolean isEmulator = true; static boolean isEmulator = true;
static boolean hasGPSSingal = true; static boolean hasGpsSingal = true;
static boolean isCheckedFirstLaunch = false; static boolean isCheckedFirstLaunch = false;
private EndToEndTestUtils() {} private EndToEndTestUtils() {}
@@ -212,7 +212,7 @@ public class EndToEndTestUtils {
// For emulator, we would fix GPS signal. // For emulator, we would fix GPS signal.
if(!isEmulator) { if(!isEmulator) {
GoToMyLocationTest.findAndClickMyLocation(activityMyTracks); GoToMyLocationTest.findAndClickMyLocation(activityMyTracks);
hasGPSSingal = !SOLO.waitForText(NO_GPS_MESSAGE_PREFIX, 1, hasGpsSingal = !SOLO.waitForText(NO_GPS_MESSAGE_PREFIX, 1,
EndToEndTestUtils.SHORT_WAIT_TIME); EndToEndTestUtils.SHORT_WAIT_TIME);
SOLO.goBack(); SOLO.goBack();
} }