Adresa
:
[go:
nahoru
,
domu
]
Sign in
android
/
platform
/
frameworks
/
support
/
7a294eb94ba67ae283d2291ca59734d7995947cf
/
glance
/
glance-appwidget-testing
16ca36b
Adds assertions for testing `actionRunCallback`. Also adds additional shorthand "class type" based variants to the existing action related test filters and assertions. See relNote.
by Shamali P
· 9 months ago
c81d38a
Change testTimeout to 2s to unblock AGP update (aosp/2759907) which seems to have made presubmits happy in aosp/2763907. Will investigate in follow up why it is timing out.
by Shamali P
· 11 months ago
92a3917
Reduce timeout to 1s (which is still pretty long time) and provide a better message when developer forget to provide composable or composable produces nothing that can be asserted on.
by Shamali P
· 11 months ago
ed71bb7
[Unit test lib] Add filters for progress indicators and nodes with any descendant matching a matcher.
by Shamali P
· 12 months ago
30bab83
[Unit test lib] Add `onAllNodes` method that returns a `GlanceNodeAssertionCollection` to perform assertions on collection of nodes. Supported assertions on collections include: `assertAll`, `assertAny`, `assertCountEquals`. Additionally, following operations can be performed on a collection: `filter` to filter the collection via a matcher, `get` to get node at an index in collection. Also adds a `onChildren` method that allows performing assertions on children of a node returned by `onNode`.
by Shamali P
· 12 months ago
8379b3e
[Unit test lib] Add operators for matchers - namely - `and`, `or` and `not`. Also adds `assertHasText` shorthand for asserting that a node has given text.
by Shamali P
· 12 months ago
f8d3f25
[Unit test lib] Add appwidget-specific filters and assertions - isChecked, isNotChecked, and for clicks that start activity / service or broadcasts.
by Shamali P
· 12 months ago
67abefb
[Unit test lib] Add `runGlanceAppWidgetUnitTest` similar to compose's `runComposeUiTest` that provides scoped functions such as `provideContent`, `onNode` etc. to be able to write unit tests.
by Shamali P
· 1 year ago