Fix two error of e2e tests.

This commit is contained in:
youtaol
2012-11-21 14:45:15 +08:00
parent 9f6427c203
commit 51bce4d2dc
@@ -234,7 +234,7 @@ public class EndToEndTestUtils {
* Checks whether the Google Play Services need update. * Checks whether the Google Play Services need update.
*/ */
private static boolean isGooglePlayServicesLatest() { private static boolean isGooglePlayServicesLatest() {
return !SOLO.searchText("Google Play services"); return findTextView("Google Play services") == null;
} }
/** /**
@@ -460,6 +460,7 @@ public class EndToEndTestUtils {
* @return true if it is under recording. * @return true if it is under recording.
*/ */
public static boolean isUnderRecording() { public static boolean isUnderRecording() {
instrumentation.waitForIdleSync();
return SOLO.getCurrentActivity().findViewById(R.id.track_controller_stop).isEnabled(); return SOLO.getCurrentActivity().findViewById(R.id.track_controller_stop).isEnabled();
} }