8c153ac8980737c4292ae1c019c69471607b3859 |
|
11-Oct-2016 |
Kirill Grouchnikov <kirillg@google.com> |
Remove flakiness / race condition in snackbar tests Instead of artifical timeouts and race condition in waiting for snackbar's dismissal in a loop, use Espresso's IdlingResource to reliably wait until the snackbar has been shown or dismissed. Also align the API surface of snackbar's callbacks with DrawerLayout's listeners, allowing registering more than one callback, and removing registered callbacks. Bug: 32022732 Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.CustomSnackbarTest Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.SnackbarTest Change-Id: If8f8415b6453d75cb24a022b2d7d676f7649542c
/frameworks/support/design/tests/src/android/support/design/testutils/SnackbarUtils.java
|
8da7b24b08afba7ec155a371117df018bcc25eef |
|
26-Sep-2016 |
Kirill Grouchnikov <kirillg@google.com> |
Support custom views on snackbars Split the existing Snackbar class into two - the base class with the common functionality for the lifecycle management and action, and the extending class that "adds" a text message. The extending class maintains the existing API surface. This CL has sample code for a custom snackbar in SupportDesignDemo, as well as unit tests in CustomSnackbarTest class. Bug: 31658766 Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.SnackbarTest Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.CustomSnackbarTest Test: ./gradlew support-design-demos:assembleDebug; adb install -d -r ../../out/host/gradle/frameworks/support/support-design-demos/build/outputs/apk/support-design-demos-debug.apk Change-Id: Ic042ad84f56645b48ad6a4d46e22a8e9352f5268
/frameworks/support/design/tests/src/android/support/design/testutils/SnackbarUtils.java
|
b6b4a30c2832e00e4d471665471748f0cb8143bc |
|
28-Jun-2016 |
Chris Banes <chrisbanes@google.com> |
Add Snackbar + FloatingActionButton tests Change-Id: I807819c0896d888fc856775876969f744226d07c
/frameworks/support/design/tests/src/android/support/design/testutils/SnackbarUtils.java
|
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
|