aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Jin <kjin@google.com>2015-02-19 20:26:25 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-19 20:26:25 +0000
commit605df53f46d32197f72480e55dbe5a9de40b1116 (patch)
tree35e8d9df9df44158129d1c5e378dd7bdeca0b991
parent76da48166c618b1aca9b9e35f2c5f04fe3835c1b (diff)
parentf2a0a0f9086290b2952547e205b2e61fad00655c (diff)
downloaddroiddriver-605df53f46d32197f72480e55dbe5a9de40b1116.tar.gz
am f2a0a0f9: am 9ef38124: Merge "Fix javadoc errors"
* commit 'f2a0a0f9086290b2952547e205b2e61fad00655c': Fix javadoc errors
-rw-r--r--src/com/google/android/droiddriver/helpers/BaseDroidDriverTest.java2
-rw-r--r--src/com/google/android/droiddriver/helpers/package-info.java12
2 files changed, 7 insertions, 7 deletions
diff --git a/src/com/google/android/droiddriver/helpers/BaseDroidDriverTest.java b/src/com/google/android/droiddriver/helpers/BaseDroidDriverTest.java
index c1b523f..524e3d8 100644
--- a/src/com/google/android/droiddriver/helpers/BaseDroidDriverTest.java
+++ b/src/com/google/android/droiddriver/helpers/BaseDroidDriverTest.java
@@ -115,7 +115,7 @@ public abstract class BaseDroidDriverTest<T extends Activity> extends
* behavior - if multiple subclasses override this method, only the first override is executed.
* Other overrides are silently ignored. You can either use {@link SingleRun} in {@link #setUp},
* or override this method, which is a simpler alternative with the aforementioned catch.
- * <p/>
+ * <p>
* If an InstrumentationDriver is used, this is a good place to call {@link
* com.google.android.droiddriver.instrumentation.ViewElement#overrideClassName}
*/
diff --git a/src/com/google/android/droiddriver/helpers/package-info.java b/src/com/google/android/droiddriver/helpers/package-info.java
index 0f5b6fd..e39e003 100644
--- a/src/com/google/android/droiddriver/helpers/package-info.java
+++ b/src/com/google/android/droiddriver/helpers/package-info.java
@@ -22,10 +22,10 @@
* A UI test framework should model the UI of the AUT in a hierarchical way to maximize code reuse.
* Common interactions should be abstracted as methods of page objects. Uncommon interactions may
* not be abstracted, but carried out using "driver" directly.
- * <p/>
+ * <p>
* The organization of the entities (pages, components) does not need to strictly follow the AUT
* structure. The UI model can be greatly simplified to make it easy to use.
- * <p/>
+ * <p>
* In general the framework should follow these principles:
* <ul>
* <li>Layered abstraction: at the highest level, methods completely abstract the implementation
@@ -81,26 +81,26 @@
* Sometimes it shows as a test passes when run alone but fails when run with other tests.
* The work-around is to add a delay after calling startActivity.</li>
* <li>Error "android.content.res.Resources$NotFoundException: Unable to find resource ID ..."?
- * <br/>
+ * <br>
* This may occur if you reference the AUT's resource in tests, and the two APKs are out of
* sync. Solution: build and install both AUT and tests together.</li>
* <li>"You said the test runs on older devices as well as API18 devices, but mine is broken on
* X (e.g. GingerBread)!"
- * <br/>
+ * <br>
* This may occur if your AUT has different implementations on older devices. In this case,
* your tests have to match the different execution paths of AUT, which requires insight into
* the implementation of the AUT. A tip for testing older devices: uiautomatorviewer does not
* work on ore-API16 devices (the "Device screenshot" button won't work), but you can use it
* with dumps from DroidDriver (use to-uiautomator.xsl to convert the format).</li>
* <li>"com.android.launcher has stopped unexpectedly" and logcat says OutOfMemoryError
- * <br/>
+ * <br>
* This is sometimes seen on GingerBread or other low-memory and slow devices. GC is not fast
* enough to reclaim memory on those devices. A work-around: call gc more aggressively and
* sleep to let gc run, e.g.
* <pre>
public void setUp() throws Exception {
super.setUp();
- if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.GINGERBREAD_MR1) {
+ if (Build.VERSION.SDK_INT &lt;= Build.VERSION_CODES.GINGERBREAD_MR1) {
Runtime.getRuntime().gc();
SystemClock.sleep(1000L);
}