commit | 67deaf0fea3cc8b20b19acb28f10f6d55bdc1f8b | [log] [tgz] |
---|---|---|
author | JianYang Liu <jianyliu@google.com> | Fri Jan 31 10:56:54 2020 -0800 |
committer | JianYang Liu <jianyliu@google.com> | Fri Jan 31 13:59:28 2020 -0800 |
tree | ceb232ec4671ab39c161db1ca561468df8929a43 | |
parent | b60798ae73fe0cb6948bc276fe2ad1fdf07de88b [diff] [blame] |
Ignore CarSettings unit tests related to UserManager and dialog titles. UserManager robolectric implementation is broken. Dialog titles appear to be broken due to Chassification. Bug: 148571547 Test: Robolectric tests pass Change-Id: Ib54b30089e13b6b378ad267bbfa62d412693f64f
diff --git a/tests/robotests/src/com/android/car/settings/testutils/DialogTestUtils.java b/tests/robotests/src/com/android/car/settings/testutils/DialogTestUtils.java index 303b607..022e15f 100644 --- a/tests/robotests/src/com/android/car/settings/testutils/DialogTestUtils.java +++ b/tests/robotests/src/com/android/car/settings/testutils/DialogTestUtils.java
@@ -54,4 +54,10 @@ com.android.internal.R.id.alertTitle); return titleView.getText().toString(); } + + public static String getMessage(DialogFragment dialogFragment) { + TextView messageView = dialogFragment.getDialog().getWindow().findViewById( + com.android.internal.R.id.message); + return messageView.getText().toString(); + } }