summaryrefslogtreecommitdiffstats
path: root/tests/tapl
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-03-27 16:10:30 -0700
committervadimt <vadimt@google.com>2019-03-27 16:10:30 -0700
commitcea84574ecbd43f41952b09d31840cc0b46503cc (patch)
treed1b6c370d07865c5f3357e06590b837636c29dd3 /tests/tapl
parent60353faa2e796f461c9271b75b3849e070c4532f (diff)
downloadandroid_packages_apps_Trebuchet-cea84574ecbd43f41952b09d31840cc0b46503cc.tar.gz
android_packages_apps_Trebuchet-cea84574ecbd43f41952b09d31840cc0b46503cc.tar.bz2
android_packages_apps_Trebuchet-cea84574ecbd43f41952b09d31840cc0b46503cc.zip
TAPL: using assert that prints context
Change-Id: I9545e82f67e51bd07f20f0313d98f5dd65c84d4e
Diffstat (limited to 'tests/tapl')
-rw-r--r--tests/tapl/com/android/launcher3/tapl/Background.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/Background.java b/tests/tapl/com/android/launcher3/tapl/Background.java
index 26c0ca4ec..358d5e907 100644
--- a/tests/tapl/com/android/launcher3/tapl/Background.java
+++ b/tests/tapl/com/android/launcher3/tapl/Background.java
@@ -20,8 +20,6 @@ import static com.android.launcher3.TestProtocol.BACKGROUND_APP_STATE_ORDINAL;
import static com.android.launcher3.tapl.LauncherInstrumentation.WAIT_TIME_MS;
import static com.android.launcher3.tapl.TestHelpers.getOverviewPackageName;
-import static org.junit.Assert.assertTrue;
-
import android.graphics.Point;
import android.os.SystemClock;
import android.view.MotionEvent;
@@ -61,7 +59,7 @@ public class Background extends LauncherInstrumentation.VisibleContainer {
"want to switch from background to overview")) {
verifyActiveContainer();
goToOverviewUnchecked(BACKGROUND_APP_STATE_ORDINAL);
- assertTrue("Overview not visible", mLauncher.getDevice().wait(
+ mLauncher.assertTrue("Overview not visible", mLauncher.getDevice().wait(
Until.hasObject(By.pkg(getOverviewPackageName())), WAIT_TIME_MS));
return new BaseOverview(mLauncher);
}