History log of /frameworks/support/v7/appcompat/tests/src/android/support/v7/app/DrawerLayoutDoubleTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/DrawerLayoutDoubleTest.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/DrawerLayoutDoubleTest.java