Change method name of EndToEndTestUtils.isEmulator() to EndToEndTestUtils.setIsEmulator(). And add comment in CreateAndSendTrackTest.

This commit is contained in:
youtaol
2012-06-18 11:39:25 +08:00
parent 155e5bcc7f
commit cf7e87997f
2 changed files with 3 additions and 3 deletions
@@ -109,6 +109,7 @@ public class CreateAndSendTrackTest extends ActivityInstrumentationTestCase2<Tra
// Go back to track list.
EndToEndTestUtils.SOLO.goBack();
instrumentation.waitForIdleSync();
// For all characters will be change to lower case during sendKeys() method, add to lower() method here.
assertTrue(EndToEndTestUtils.SOLO.searchText(newTrackName.toLowerCase().replaceAll(" ", "")));
assertTrue(EndToEndTestUtils.SOLO.searchText(newDesc.toLowerCase().replaceAll(" ", "")));
}
@@ -121,7 +121,7 @@ public class EndToEndTestUtils {
/**
* Checks if the test is run under an emulator.
*/
static void isEmulator() {
static void setIsEmulator() {
isEmulator = android.os.Build.MODEL.equals("google_sdk");
}
@@ -132,7 +132,7 @@ public class EndToEndTestUtils {
* @param activityMyTracks the startup activity
*/
static void setupForAllTest(Instrumentation instrumentation, TrackListActivity activityMyTracks) {
isEmulator();
setIsEmulator();
EndToEndTestUtils.INSTRUMENTATION = instrumentation;
EndToEndTestUtils.ACTIVITYMYTRACKS = activityMyTracks;
EndToEndTestUtils.SOLO = new Solo(EndToEndTestUtils.INSTRUMENTATION,
@@ -503,5 +503,4 @@ public class EndToEndTestUtils {
}
return null;
}
}