forked from upstream-mirrors/OpenTracks
Merge heads
This commit is contained in:
@@ -114,7 +114,7 @@ public class DeleteTest extends ActivityInstrumentationTestCase2<TrackListActivi
|
||||
EndToEndTestUtils
|
||||
.getButtonOnScreen(activityMyTracks.getString(R.string.generic_ok), true, true);
|
||||
instrumentation.waitForIdleSync();
|
||||
assertFalse(EndToEndTestUtils.SOLO.getCurrentActivity().findViewById(R.id.track_list_stop_recording_button).isEnabled());
|
||||
assertFalse(EndToEndTestUtils.SOLO.getCurrentActivity().findViewById(R.id.track_controller_stop).isEnabled());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+5
-5
@@ -394,7 +394,7 @@ public class EndToEndTestUtils {
|
||||
* Starts recoding track.
|
||||
*/
|
||||
static void startRecording() {
|
||||
View startButton = SOLO.getCurrentActivity().findViewById(R.id.track_list_record_track_button);
|
||||
View startButton = SOLO.getCurrentActivity().findViewById(R.id.track_controller_record);
|
||||
if(startButton != null && startButton.isShown()) {
|
||||
SOLO.clickOnView(startButton);
|
||||
} else if (hasActionBar) {
|
||||
@@ -427,7 +427,7 @@ public class EndToEndTestUtils {
|
||||
* Pauses recoding track.
|
||||
*/
|
||||
static void pauseRecording() {
|
||||
View pauseButton = SOLO.getCurrentActivity().findViewById(R.id.track_list_record_track_button);
|
||||
View pauseButton = SOLO.getCurrentActivity().findViewById(R.id.track_controller_record);
|
||||
if(pauseButton != null && pauseButton.isShown()) {
|
||||
SOLO.clickOnView(pauseButton);
|
||||
} else if (hasActionBar) {
|
||||
@@ -445,7 +445,7 @@ public class EndToEndTestUtils {
|
||||
* Resume recoding track.
|
||||
*/
|
||||
static void resumeRecording() {
|
||||
View startButton = SOLO.getCurrentActivity().findViewById(R.id.track_list_record_track_button);
|
||||
View startButton = SOLO.getCurrentActivity().findViewById(R.id.track_controller_record);
|
||||
if(startButton != null && startButton.isShown()) {
|
||||
SOLO.clickOnView(startButton);
|
||||
} else if (hasActionBar) {
|
||||
@@ -465,7 +465,7 @@ public class EndToEndTestUtils {
|
||||
* @return true if it is under recording.
|
||||
*/
|
||||
static boolean isUnderRecording() {
|
||||
View startButton = SOLO.getCurrentActivity().findViewById(R.id.track_list_record_track_button);
|
||||
View startButton = SOLO.getCurrentActivity().findViewById(R.id.track_controller_record);
|
||||
if(startButton != null && startButton.isShown()) {
|
||||
return false;
|
||||
}
|
||||
@@ -490,7 +490,7 @@ public class EndToEndTestUtils {
|
||||
* @param isSave true means should save this track
|
||||
*/
|
||||
static void stopRecording(boolean isSave) {
|
||||
View stopButton = SOLO.getCurrentActivity().findViewById(R.id.track_list_stop_recording_button);
|
||||
View stopButton = SOLO.getCurrentActivity().findViewById(R.id.track_controller_stop);
|
||||
if(stopButton != null && stopButton.isShown() ) {
|
||||
SOLO.clickOnView(stopButton);
|
||||
} else if (hasActionBar) {
|
||||
|
||||
+2
-2
@@ -751,7 +751,7 @@ public class TrackRecordingServiceTest extends ServiceTestCase<TestRecordingServ
|
||||
loc.setSpeed(10);
|
||||
loc.setTime(startTime + i * 10000);
|
||||
loc.setBearing(3.0f);
|
||||
service.recordLocation(loc);
|
||||
service.insertTrackPoint(loc);
|
||||
|
||||
if (i % 10 == 0) {
|
||||
service.insertWaypoint(WaypointCreationRequest.DEFAULT_STATISTICS);
|
||||
@@ -787,7 +787,7 @@ public class TrackRecordingServiceTest extends ServiceTestCase<TestRecordingServ
|
||||
location.setSpeed(10);
|
||||
location.setTime(System.currentTimeMillis());
|
||||
location.setBearing(3.0f);
|
||||
trackRecordingService.recordLocation(location);
|
||||
trackRecordingService.insertTrackPoint(location);
|
||||
Thread.sleep(100);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user