Fix an error of endtoend test.

This commit is contained in:
youtaol
2013-01-04 15:06:09 +08:00
parent 09ff246ef7
commit f371e9e0e2
2 changed files with 2 additions and 0 deletions
@@ -961,6 +961,7 @@ public class EndToEndTestUtils {
findMenuItem(activityMytracks.getString(R.string.menu_insert_marker), true);
enterTextAvoidSoftKeyBoard(0, WAYPOINT_NAME);
SOLO.clickOnButton(activityMytracks.getString(R.string.generic_add));
instrumentation.waitForIdleSync();
if (hasGpsSingal) {
Assert.assertTrue(SOLO.waitForText(WAYPOINT_NAME, 1, LONG_WAIT_TIME, true));
} else {
@@ -54,6 +54,7 @@ public class StressTest extends ActivityInstrumentationTestCase2<TrackListActivi
instrumentation = getInstrumentation();
trackListActivity = getActivity();
EndToEndTestUtils.setupForAllTest(instrumentation, trackListActivity);
BigTestUtils.unlockAndWakeupDevice();
startTime = System.currentTimeMillis();
}