merge heads

This commit is contained in:
Jimmy Shih
2013-01-17 15:33:46 -08:00
2 changed files with 13 additions and 12 deletions
@@ -961,7 +961,7 @@ public class EndToEndTestUtils {
*/ */
public static void createWaypoint(int markerNumber) { public static void createWaypoint(int markerNumber) {
findMenuItem(activityMytracks.getString(R.string.menu_markers), true); findMenuItem(activityMytracks.getString(R.string.menu_markers), true);
if (markerNumber > 0) { if (markerNumber > 0 && hasGpsSingal) {
SOLO.waitForText(WAYPOINT_NAME); SOLO.waitForText(WAYPOINT_NAME);
int actualMarkerNumber = SOLO.getCurrentListViews().get(0).getCount(); int actualMarkerNumber = SOLO.getCurrentListViews().get(0).getCount();
Assert.assertEquals(markerNumber, actualMarkerNumber); Assert.assertEquals(markerNumber, actualMarkerNumber);
@@ -118,6 +118,7 @@ public class ExportAndImportTest extends ActivityInstrumentationTestCase2<TrackL
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.trackDesc)); assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.trackDesc));
EndToEndTestUtils.SOLO.clickOnText(activityMyTracks.getString(R.string.generic_cancel)); EndToEndTestUtils.SOLO.clickOnText(activityMyTracks.getString(R.string.generic_cancel));
if (EndToEndTestUtils.hasGpsSingal) {
// Check the markers. // Check the markers.
EndToEndTestUtils.findMenuItem(activityMyTracks.getString(R.string.menu_markers), true); EndToEndTestUtils.findMenuItem(activityMyTracks.getString(R.string.menu_markers), true);
@@ -130,7 +131,7 @@ public class ExportAndImportTest extends ActivityInstrumentationTestCase2<TrackL
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_NAME + 2)); assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_NAME + 2));
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_TYPE + 2)); assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_TYPE + 2));
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_DESC + 2)); assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_DESC + 2));
}
} }
/** /**