Add some checks before next test.

This commit is contained in:
youtaol
2012-06-27 15:07:46 +08:00
parent faddce53be
commit 7f14b26873
3 changed files with 7 additions and 3 deletions
@@ -216,6 +216,8 @@ public class CreateAndSendTrackTest extends ActivityInstrumentationTestCase2<Tra
// Reset all settings.
EndToEndTestUtils.resetAllSettings(activityMyTracks, false);
assertTrue(EndToEndTestUtils.SOLO.waitForText(activityMyTracks.getString(R.string.track_list_empty_message)));
// Test should not show relative time.
EndToEndTestUtils.startRecording();
instrumentation.waitForIdleSync();
@@ -225,7 +227,7 @@ public class CreateAndSendTrackTest extends ActivityInstrumentationTestCase2<Tra
instrumentation.waitForIdleSync();
EndToEndTestUtils.SOLO.goBack();
instrumentation.waitForIdleSync();
assertFalse(EndToEndTestUtils.SOLO.waitForText(EndToEndTestUtils.RELATIVE_STARTTIME_POSTFIX, 1, 500));
assertFalse(EndToEndTestUtils.SOLO.waitForText(EndToEndTestUtils.RELATIVE_STARTTIME_POSTFIX, 1, 5000));
// Test should show relative time for createSimpleTrack would save a track
// name that is different with the start time.