e6cf359406cd7baaa0659b54c1b7d8ac45db122a |
|
30-Jun-2017 |
Aurimas Liutikas <aurimas@google.com> |
Mark tests @LargeTest if they don't fit @MediumTest times. Test: None Change-Id: I2ae471927588ea6f6d1666f45a7a687ee980b139
/frameworks/support/design/tests/src/android/support/design/widget/SnackbarTest.java
|
e855c308ce795c6ac382b94670c264fc368ba882 |
|
24-Jan-2017 |
Chris Banes <chrisbanes@google.com> |
Fix Snackbar touch handling This fixes the issue where the timeout is not restored when the user swipes up from the Snackbar. Test: included (and passing) BUG: 33931084 Change-Id: I2a10936bed97c0344cc3dac66b908e2733f2ffa0
/frameworks/support/design/tests/src/android/support/design/widget/SnackbarTest.java
|
ca9c74379e9fb2b38965253836a2ab0e36990c45 |
|
29-Nov-2016 |
Kirill Grouchnikov <kirillg@google.com> |
Move the now-deprecated setCallback to Snackbar This is where it was originally, and this is where it remains for backwards-compatibility reasons. Also fix broken tests. Test: run tests in SnackbarTest Bug: 33192595 Change-Id: I644c03b6a284d7f7177916347c07fc30558e08b8
/frameworks/support/design/tests/src/android/support/design/widget/SnackbarTest.java
|
4bb57b2c7c5e8fa607119bd5089535d5862cb979 |
|
23-Nov-2016 |
Aurimas Liutikas <aurimas@google.com> |
Update size annotations for compat, design, and appcompat tests. Moved from SmallTest to MediumTest if test took >0.5s Moved from MediumTest to LargeTest if test took >6s Bug: 33058210 Test: running these tests locally on Nexus 5X running 7.0 Change-Id: If4761c9bba2ea1b8280cb104b43d71332b19c94b
/frameworks/support/design/tests/src/android/support/design/widget/SnackbarTest.java
|
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/widget/SnackbarTest.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/widget/SnackbarTest.java
|
42e7d6fafcde7bfe261dd7d8d75ee53ca0cd6790 |
|
28-Sep-2016 |
Aurimas Liutikas <aurimas@google.com> |
Replace usage of Instrumentation#runOnMainSync with ActivityTestRule#runOnUiThread. ActivityTestRule#runOnUiThread handles exceptions correctly and thus should be used in place of Instrumentation#runOnMainSync. This changes most of these use-cases except for tricky cases. Bug: 31801302 Test: ran support-design:connectedCheck and support-appcompat:connectedCheck Change-Id: I70904aef89e6bbc2a3cff1b3be697258d666e316
/frameworks/support/design/tests/src/android/support/design/widget/SnackbarTest.java
|
754cb29c50f09a83251dd4bb633ba445b2411adb |
|
27-Sep-2016 |
Aurimas Liutikas <aurimas@google.com> |
Switch from deprecated size annotations to new ones. Switching from android.test.suitebuilder.annotation.*Test to android.support.test.filters.*Test. Bug: 30074170 Test: manual - ran small appcompat tests, they still run and pass Change-Id: Idce58b988c8e1a809f7f5fae67e0e235159d9fc5
/frameworks/support/design/tests/src/android/support/design/widget/SnackbarTest.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/widget/SnackbarTest.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/widget/SnackbarTest.java
|
c554016bf7e7e057479cf005770dd5e127500329 |
|
11-Feb-2016 |
Kirill Grouchnikov <kirillg@google.com> |
Expanding test coverage for Snackbar * Various combinations of message and action text sources * Dismissing via API call to dismiss() * Auto-dismissal after timeout * Auto-dismissal after another snackbar is shown Change-Id: Iabc57b0e77a7657a7889071d1ae9cfc194f10278
/frameworks/support/design/tests/src/android/support/design/widget/SnackbarTest.java
|
7b7e3bfd940aa1b41497ac4c6710a97b54c3e551 |
|
11-Feb-2016 |
Kirill Grouchnikov <kirillg@google.com> |
Align Snackbar test with current guidelines * Naming of activity and test classes * Using Mockito for listener-related logic Change-Id: Icf21f4c43437f0db66cd31e3e0c347715987669a
/frameworks/support/design/tests/src/android/support/design/widget/SnackbarTest.java
|