8 Commits

Author SHA1 Message Date
connieshi
a6106e12b2 When a chip's close icon is purely decorative (i.e. no onCloseIconClickLisetener is set), avoid setting custom accessibility delegate.
PiperOrigin-RevId: 268904579
2019-09-18 14:03:37 -04:00
connieshi
55adcdfd23 Update chip and chip group unit tests to use Google Truth assertions.
PiperOrigin-RevId: 253663636
2019-06-18 13:49:27 -04:00
connieshi
8c0f6f72c9 Call ChipDrawable#setShouldDrawText(false) inside Chip#setChipDrawable.
PiperOrigin-RevId: 253459599
2019-06-18 13:35:22 -04:00
Material Design Team
fc9e10d62e Adjust tests for upcoming Robolectric change to default TextLayoutMode to REALISTIC.
Robolectric will soon change to layout TextViews more realistically.

PiperOrigin-RevId: 243328722
2019-04-19 16:20:02 -04:00
connieshi
e6f429fe75 Fix bug that ignored Chip#setEnsureMinTouchTargetAttribute(false) once Chip#setEnsureMinTouchTargetAttribute(true) has been called.
Ensure chip width also meets the min touch target size.

PiperOrigin-RevId: 240679599
2019-04-05 15:17:59 -04:00
marianomartin
238c15759f Migrating to roboelectric 4.1
We were in 3.3.2 so doing a few changes from:
http://robolectric.org/migrating/

- Replaced RuntimeEnvironment.application with ApplicationProvider#getApplicationContext()
- Added android.enableUnitTestBinaryResources=true
   This throws a warning but the release notes say that it can be safely ignored and will
   be fixed in Gradle Plugin 3.4
- Removed @Config(manifest=...) from test
- Added dependencies.
- Added tools:overrideLibrary="androidx.test.core" to use a lower sdk

PiperOrigin-RevId: 226190528
2018-12-21 11:26:40 -05:00
cketcham
dc72aaeed4 Migrate Gradle build and sources to androidx
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
connieshi
5e849e2eea Add unit test for Chip.
PiperOrigin-RevId: 225413228
2018-12-21 10:46:41 -05:00