mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Improving TAPL messaging
Test: presubmit Bug: 187761685 Change-Id: I83eb0eef2f9c8c33cc9d1b42cb52fb670a5bf427
This commit is contained in:
@@ -496,13 +496,14 @@ public final class LauncherInstrumentation {
|
||||
private void fail(String message) {
|
||||
checkForAnomaly();
|
||||
Assert.fail(formatSystemHealthMessage(formatErrorWithEvents(
|
||||
"http://go/tapl test failure:\nOverview: " + getContextDescription()
|
||||
"http://go/tapl test failure:\nSummary: " + getContextDescription()
|
||||
+ " - visible state is " + getVisibleStateMessage()
|
||||
+ ";\nDetails: " + message, true)));
|
||||
}
|
||||
|
||||
private String getContextDescription() {
|
||||
return mDiagnosticContext.isEmpty() ? "" : String.join(", ", mDiagnosticContext);
|
||||
return mDiagnosticContext.isEmpty()
|
||||
? "(no context)" : String.join(", ", mDiagnosticContext);
|
||||
}
|
||||
|
||||
void assertTrue(String message, boolean condition) {
|
||||
|
||||
Reference in New Issue
Block a user