From cee6a5bbd0c00e14357c8a4d6f79fad0668741e3 Mon Sep 17 00:00:00 2001 From: youtaol Date: Fri, 13 Jul 2012 15:29:03 +0800 Subject: [PATCH] Add comment about the method showMoreMenuItem() in EndToEndTestUtils.java. Remove android:icon statement in manifest.xml for it causes a error (This error can be reproduced by run aapt dump badging MyTracksTest.apk in command line) when I try to run it on mobile harness (Test devices lab) and it seems work well after I remove it. --- MyTracksTest/AndroidManifest.xml | 1 - .../apps/mytracks/endtoendtest/EndToEndTestUtils.java | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MyTracksTest/AndroidManifest.xml b/MyTracksTest/AndroidManifest.xml index 13ba18d63..e4ca106fb 100644 --- a/MyTracksTest/AndroidManifest.xml +++ b/MyTracksTest/AndroidManifest.xml @@ -28,7 +28,6 @@ limitations under the License. android:targetSdkVersion="15" /> diff --git a/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/EndToEndTestUtils.java b/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/EndToEndTestUtils.java index ffadb462b..e59b47c54 100644 --- a/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/EndToEndTestUtils.java +++ b/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/EndToEndTestUtils.java @@ -565,7 +565,10 @@ public class EndToEndTestUtils { } /** - * Gets more menu items operation is different for different Android OS. + * Gets more menu items operation is different for different Android OS. When + * get overflow button view on action, it usually be able to click. But in + * some situation, will meet an error when click it. So catch it and try + * again. In most situation, the second click will be pass. * * @param depth control the depth of recursion to prevent dead circulation */