Root Cause: Description would be altered after displayPreference(), but getSummary() would be called after it. Solution: Update title before displayPreference(), then it could be set correctly. Fix: 192738520 Test: atest AccessibilityButtonFooterPreferenceControllerTest Change-Id: I068994fca8202b166fedf43f9d9657b0c1a64c4e
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.