forked from upstream-mirrors/OpenTracks
merge heads
This commit is contained in:
+1
-1
@@ -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);
|
||||||
|
|||||||
+12
-11
@@ -118,19 +118,20 @@ 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));
|
||||||
|
|
||||||
// Check the markers.
|
if (EndToEndTestUtils.hasGpsSingal) {
|
||||||
EndToEndTestUtils.findMenuItem(activityMyTracks.getString(R.string.menu_markers), true);
|
// Check the markers.
|
||||||
|
EndToEndTestUtils.findMenuItem(activityMyTracks.getString(R.string.menu_markers), true);
|
||||||
|
|
||||||
// The first marker.
|
// The first marker.
|
||||||
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_NAME + 1));
|
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_NAME + 1));
|
||||||
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_TYPE + 1));
|
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_TYPE + 1));
|
||||||
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_DESC + 1));
|
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_DESC + 1));
|
||||||
|
|
||||||
// The second marker.
|
|
||||||
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_NAME + 2));
|
|
||||||
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_TYPE + 2));
|
|
||||||
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_DESC + 2));
|
|
||||||
|
|
||||||
|
// The second marker.
|
||||||
|
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_NAME + 2));
|
||||||
|
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_TYPE + 2));
|
||||||
|
assertTrue(EndToEndTestUtils.SOLO.searchText(EndToEndTestUtils.WAYPOINT_DESC + 2));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user