35232c6eaeb9b99f390cb8ef0ac83bf45fa0b3fa |
|
01-Feb-2017 |
Aurimas Liutikas <aurimas@google.com> |
Update test sizes for all currently @SmallTest. SmallTests are supposed to complete in <200ms, Medium in <1s, and Large in <30s. This CL updates the size of all the SmallTest based on excecution times from presubmit test runners. Test: None Bug: 34854821 Change-Id: Iec73f7b6ef63b27cd3d8b19a8e8c7a9b91ff6729
/frameworks/support/design/tests/src/android/support/design/widget/CustomSnackbarTest.java
|
fa0f82f629bf95681c14ed559922f77a3030aa18 |
|
30-Jan-2017 |
Aurimas Liutikas <aurimas@google.com> |
Deprecated ViewCompat methods that were added in API 11. Deprecated all the ViewCompat methods that were APIs added to View since API 11. Additionally this removes usages of these APIs in support library. Bug: 32794064 Test: ./gradlew assemble assembleAndroidTest still works Change-Id: I18fb0cc1ebc67c911eeb30aada7b8315afc15835
/frameworks/support/design/tests/src/android/support/design/widget/CustomSnackbarTest.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/CustomSnackbarTest.java
|
acf7e812c17c73a27c5e5973dde80e1c59712469 |
|
18-Oct-2016 |
Aurimas Liutikas <aurimas@google.com> |
Remove a few more usages of runOnMainSync in support-design ActivityTestRule#runOnUiThread handles exceptions correctly and thus should be used in place of Instrumentation#runOnMainSync. Test: ran the modified tests Bug: 31801302 Change-Id: I3fe7f1c2b77915d1670a0f50383f56bbf13f5e4c
/frameworks/support/design/tests/src/android/support/design/widget/CustomSnackbarTest.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/CustomSnackbarTest.java
|