mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 09:33:06 +02:00
Merge heads
This commit is contained in:
+2
-1
@@ -56,7 +56,7 @@ public class EndToEndTestUtils {
|
||||
|
||||
private static final String ANDROID_LOCAL_IP = "10.0.2.2";
|
||||
// usually 5554.
|
||||
public static int emulatorPort = 5558;
|
||||
public static int emulatorPort = 5554;
|
||||
|
||||
private static final int ORIENTATION_PORTRAIT = 1;
|
||||
private static final int ORIENTATION_LANDSCAPE = 0;
|
||||
@@ -949,6 +949,7 @@ public class EndToEndTestUtils {
|
||||
public static void createWaypoint(int markerNumber) {
|
||||
findMenuItem(activityMytracks.getString(R.string.menu_markers), true);
|
||||
if (markerNumber > 0) {
|
||||
SOLO.waitForText(WAYPOINT_NAME);
|
||||
int actualMarkerNumber = SOLO.getCurrentListViews().get(0).getCount();
|
||||
Assert.assertEquals(markerNumber, actualMarkerNumber);
|
||||
} else {
|
||||
|
||||
@@ -95,6 +95,8 @@ public class StressTest extends ActivityInstrumentationTestCase2<TrackListActivi
|
||||
for (int i = 0; (System.currentTimeMillis() - startTime) < TEST_DURATION_IN_MILLISECONDS; i++) {
|
||||
EndToEndTestUtils.sendGps(10, i * 10);
|
||||
EndToEndTestUtils.rotateCurrentActivity();
|
||||
Log.i(EndToEndTestUtils.LOG_TAG, String.format("Totate %d times in %d minutes!", i,
|
||||
(System.currentTimeMillis() - startTime) / 1000 / 60));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user