c530cc115fddab8e1d9645b322424dd45f9ecd0d |
|
19-Feb-2016 |
Kirill Grouchnikov <kirillg@google.com> |
Add test for snapping behavior of AppBarLayout Also fix bug for incomplete snapping on older devices. Bug: 27408006 Change-Id: I47fda88c2d7f1bf5ba230e9f7937b2fd05e72282
/frameworks/support/design/tests/src/android/support/design/testutils/SnackbarUtils.java
|
3a8340d4a090bc8ab7ad3a774fb6d999e7384301 |
|
16-Feb-2016 |
Kirill Grouchnikov <kirillg@google.com> |
More predictable Snackbar tests. Use Espresso's IdlingResources to wait until Snackbar's sliding animation has been completed and the callback has been notified in show() / dismiss(). Change-Id: I4ef3a8dc2241223423cfefe31130db339cd46b22
/frameworks/support/design/tests/src/android/support/design/testutils/SnackbarUtils.java
|
5ee7b3de4f2bbecd3eb7e346809250d9ca806a9e |
|
13-Feb-2016 |
Kirill Grouchnikov <kirillg@google.com> |
First pass for testing anchoring of views in CoordinatorLayout. One test checks that snackbar shown in coordinator layout with a FAB pushes the FAB up as a built-in behavior. The second test checks that snackbar showin in coordinator layout results in custom view's behavior (registed in XML as class name) to be invoked. The setup is dynamic, allowing using multiple "content" layouts in the same activity so that we don't need to have multiple Activity classes cluttering the package. This CL also has a proposed way to "wait" until Snackbar has been fully shown with custom callback and Espresso's idling resources. Change-Id: Idf0ab8cdc7e2454bbcddb36c94d832d921c56da6
/frameworks/support/design/tests/src/android/support/design/testutils/SnackbarUtils.java
|