History log of /frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
8d3b808ab4720ef4e9d58f2bba4e31f741d3898c 07-Jun-2017 Aurimas Liutikas <aurimas@google.com> Remove BaseInstrumentationTestCase in AppCompat tests.

Test: ./gradlew assembleAndroidTest
Change-Id: I5ff65ee8ff5efe9499c65bb9982a6edb6c362711
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
522ead667d2efbd7675b89b11aec769ec37baa20 24-Feb-2017 Alan Viverette <alanv@google.com> Suppress flaky tests

Bug: 33659300
Bug: 34956766
Test: n/a
Change-Id: I0a24e39e5036d4a71ca7e255070edd64aaec5503
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
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/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
21ac42b40fc351a6799d7d3d439e4feb1c2c1987 22-Dec-2016 Dake Gu <dake@google.com> appcompat: Fix testDrawerHeight without status bar

Bug 30757891
Test: testDrawerHeight

Change-Id: Icd9f835b065509692aabef0c24b881f2adde2715
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.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/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.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/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.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/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
85ac705f8f1e9f1a6b4b7bb2bda72ad13eb303e4 07-Sep-2016 Yuichi Araki <yaraki@google.com> Remove unnecessary requestFocus

DrawerLayout restricts focus to its drawer items when the drawer is
open. There is no need to forcibly request focus on the drawer. This
fixes undesirable scrolling of RecyclerView when the drawer is closed.

Bug: 31041758
Change-Id: I96fbce77e3853dcac6527cd759d1994b7a817ea4
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
ee4afb511cf51d082e3226f442799a59725bdac2 07-Apr-2016 Aurimas Liutikas <aurimas@google.com> Add methods to open and close a Drawer in DrawerLayout without animation.

Bug: 27611787
Change-Id: I250bd58cb9490eb0e44d1784c122c5b0ff374ac5
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
df1317cf003b4b6c16f1657018c91519d279f13b 05-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Tests for locking / unlocking drawer

Change-Id: I0c95f57b0abe5cdc9cb3107baf0adeaea91b2cd1
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
21f78eb90b3217aa5cf69c3ffd359506468b55f4 01-Feb-2016 Kirill Grouchnikov <kirillg@google.com> First pass for testing DrawerLayout callback logic.

Use Mockito-powered listeners that track calls to its methods
and verify that expected methods have been called with consistent
values.

Change-Id: Ief6107929f9945da32ce48f065a9e3c3b1a39f31
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
3eb01e183e6eef7610881c8b9c0914afbe23b442 29-Jan-2016 Chris Banes <chrisbanes@google.com> Remove flakiness from DrawerLayout tests.

Expose a new pair of APIs on DrawerLayout that allows
registering multiple listeners. Wrap API / swipe actions
with a custom action that uses Espresso's idling resource
functionality to wait until the DrawerLayout transitions
into STATE_IDLE state.

Also add custom measure logic to our test activity to that
the drawer is not too wide on smaller screens. Otherwise a
swipe on an already opened drawer is treated as a click on
one of the items which is then results in closing the drawer.

Bug: 26003516
Bug: 26160710
Change-Id: Ifa7b99ad396636cedb4429e3e3204ca521188f70
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
431713be0958fd0f4d878f5f25755575191fb8ba 20-Jan-2016 Kirill Grouchnikov <kirillg@google.com> More tests for DrawerLayout.

Add tests that cover the internal DrawerLayout.isDrawerView via a variety
of API calls - opening / closing a drawer, checking open state, setting
lock mode and querying the lock mode.

Also add the same isDrawerView check to getDrawerLockMode as we have in
isDrawerOpen, isDrawerVisible and various setters that get View as the
parameter.

Finally, annotate all the existing DrawerLayout tests so that they can properly
run on Sponge and simplify the inner layout of the drawer content.

Bug: 26642831
Change-Id: Ia62b415eda39a2a6560b15cc0a55e6d227261a6c
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
24391daa4e5831395924e2f48df86e19294cc211 25-Jan-2016 Chris Banes <chrisbanes@google.com> Update AppCompat tests to use Activity Rules

Also tidied up some tests which test the Activity
finishing. These tests should be less flaky now.

Change-Id: I13eea877896b4a5fd38e9ea510a0bed03b1fcb33
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
e8c9f7dbd2d75bce83410ce4b6bcf5c1c69a7cfb 10-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Fix package name for the custom drawer layout.

Change-Id: Icdfd8e49994cfdecc7ec8a9d6e79ce7b2b55e660
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
79bdaf9f66d9000feb54d8f4011fc412dd7829bc 05-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Testing DrawerLayout for respecting fitsSystemWindows attribute

Change-Id: I774a525ce92c35fe39311ff961b6f292ae69c6fc
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
bb2fd572a11bcd12f767b3ecab6fbdf9112279af 03-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Testing DrawerLayout's open / close via swipe gestures.

* Also wrap the existing open / close test via API to run
a few more times in a loop to check that the drawer doesn't
carry some old state when the drawer is getting continuously
open / close.

Change-Id: Iad3468a40be61b4ad60d08fe944d85f97695b301
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java
30c25a404365719cbe21a0886ddbe8be544c8e90 02-Dec-2015 Kirill Grouchnikov <kirillg@google.com> First pass for basic testing of DrawerLayout with Espresso

Change-Id: I01d543ccfb272dae9307790426b7f0cd712ac865
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutTest.java