• Home
  • History
  • Annotate
  • only in /frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
History log of /frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
98fb75eaf45370ead657c78e03d5bf7b83f67a6b 26-Aug-2016 Chris Banes <chrisbanes@google.com> Fix night mode for config-based color upconversions

This works around an issue in the platform where
night-configured color resources which are converted
to ColorDrawables are not purged from the Resources
cache. Fixed by manually forcing the resources instance
to purge its caches when the night mode changes.

BUG: 30132023

Change-Id: I68128bd752d7c8451940631df336154246e921ae
estUtils.java
88a4195a63cfa5494d63c51c75d19aca8bc7c11c 20-Jul-2016 Aurimas Liutikas <aurimas@google.com> Fix AppCompatBaseViewTest to work in landscape mode.

Certain view might not be visible due to the height of the screen.
It was failing AppCompatTintableViewActions#setEnabled which does
not actually require views to be on screen anyway.

Bug: 30198627
Change-Id: I023cbe559fbbb4958c57a8b741ab6bb877a39424
ppCompatTintableViewActions.java
261ba392bba9ff4018ff7dd53091f71549bf56ad 28-Jun-2016 Chris Banes <chrisbanes@google.com> Fix testBackCollapsesSearchView tests

Caused by a timing issue with the IME on N. Fixed
by moving to an Espresso based test.

BUG: 29570777
Change-Id: I80a8e62d04392399e17134a411f7ff66c1d02f2a
aseTestActivity.java
4c99f0e29b0926d8e5de44b7e3980d47f052f04c 24-Jun-2016 Chris Banes <chrisbanes@google.com> Add AppCompatResources.getDrawable()

This CL adds the new public method, which just
proxies to AppCompatDrawableManager for now. Also
moved all internal calls of
AppCompatDrawableManager.getDrawable() to the new method.

Looks like a huge commit, but it's mostly just moving
things to use the new method.

BUG: 29564497
Change-Id: Ie1603cc83d58333d70b90aefcfaf21fd367081ae
estUtils.java
58641eb8513b7181a73a9db3ea7b68ba10d1c15e 22-Jun-2016 Chris Banes <chrisbanes@google.com> Fix AppCompat window insets tests

Caused by us not actually triggering something to
dispatch insets.

BUG: 29551731
Change-Id: I661920eb90fde3fe73e9480fe8db604265ff5fb3
estUtilsActions.java
e4d2246959c6c71784d9a557d11e2134f7bbc56d 26-Apr-2016 Chris Banes <chrisbanes@google.com> Merge "ActionMode fixes found in testing" into nyc-dev am: 409da25 am: 133d344
am: e42641d

* commit 'e42641d2d4542d1ea9d3cf4eb5114fd32bd7ced1':
ActionMode fixes found in testing

Change-Id: Ife36dfcaef65957904aa32a246b5afb97bdcf1e6
bfc9bd50c5c7e6874dc6f32a5d81620398a5c1e5 26-Apr-2016 Chris Banes <chrisbanes@google.com> ActionMode fixes found in testing

- Fix onSupportActionModeFinished() being called twice.
Caused by double wrapping the callback which means that
each call is called twice.
- Fix onPrepareActionMode not being called. Caused by setting
the current action mode too late.

BUG: 28378961
BUG: 28392319

Change-Id: I7e41f1396c7230a37880c8c812d4622e969e032b
aseTestActivity.java
3ab41277a085b829e15eca69442cfe45cae58a8c 22-Apr-2016 Kirill Grouchnikov <kirillg@google.com> Update AppCompatSpinner popup color tests

* Use android:colorBackground instead of android:background for
default popup theming
* Only query the center pixel of the combined background to eliminate
need for checking rounded corners and drop shadow
* Also mark the entire buildSrc to be ignored by Git

Change-Id: Ida519ddb4091e5263f94b22b6461b9bb56669875
estUtils.java
estUtilsMatchers.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
rawerLayoutActions.java
9eee6ba8edef2ab70d99fbaea6349f29d28b8fb6 22-Mar-2016 Chris Banes <chrisbanes@google.com> Fix issues around setting text color

In AppCompat, we now reset the text color if we detect
a String reference. Since most platform styles declare
a string referenced color in their text appearance, this
means that the text appearance can override an explicit
android:textColor on the view.

Fixed by always resetting the text color on API < 23.

BUG: 27784645
Change-Id: Ic5a2c7e1fb49da419bbfd3c6176c7a28c6eb4ac1
estUtilsActions.java
ba747ac60a883079492ac2594e462568df9fe438 17-Mar-2016 Kirill Grouchnikov <kirillg@google.com> resolve merge conflicts of cd5e42a to nyc-dev

Change-Id: Ic81e161d4560a814e8bfba600a8cfd18bef147d6
cd5e42a478a6cb4592f87971b7eadd29b47b8007 15-Mar-2016 Kirill Grouchnikov <kirillg@google.com> Work around incomplete tinting support on L devices.

Background tinting implementation on L has a bug (fixed in
L MR1 onwards) which results in tinting not working in some cases.

Work around the bug by forcing state update on background drawable
on L devices.

Bug: 27674299
Change-Id: I40166c33a34c29bbfad43ca03d4897b52eb39f3b
ppCompatTintableViewActions.java
estUtilsActions.java
708522730268f27e2db46d12561c5658593d7883 03-Mar-2016 Kirill Grouchnikov <kirillg@google.com> Tinting / all-caps tests for AppCompatButton class

Change-Id: I7a610a3becf9ca21f15de686f9d8e11d4122b622
ppCompatTextViewActions.java
estUtilsActions.java
1d6e3840486930e276d142861afb6c7e72d5ce72 02-Mar-2016 Kirill Grouchnikov <kirillg@google.com> Tinting / popup theming tests for AppCompatSpinner.

Change-Id: I44268bc9a3d7f946c97cf0af027464b3ecbf3c92
estUtils.java
estUtilsMatchers.java
320463c1cf5f8e50cce340df195b60835fe23002 11-Feb-2016 Aurimas Liutikas <aurimas@google.com> Set activity enter and exit transitions to be no animation.

This should speed up our tests as we spend a significant amount of
time opening and closing activities.

Bug: 27116907
Change-Id: I1bdb0530100abe8c4e8ae217e873b35e4332e79d
aseTestActivity.java
df1317cf003b4b6c16f1657018c91519d279f13b 05-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Tests for locking / unlocking drawer

Change-Id: I0c95f57b0abe5cdc9cb3107baf0adeaea91b2cd1
rawerLayoutActions.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
rawerLayoutActions.java
estUtilsMatchers.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
estUtilsActions.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
estUtils.java
1b81f288853d60e25e870fd522c927fd72f2efb5 11-Jan-2016 Kirill Grouchnikov <kirillg@google.com> More tests for background tinting of AppCompatTextView

Change-Id: I354c3f64e914f99dc00d8b796ca9cdc1943de63f
ppCompatTintableViewActions.java
estUtils.java
estUtilsMatchers.java
ee9519c17254b5e992164ff278173c4b2c7c5fce 08-Jan-2016 Kirill Grouchnikov <kirillg@google.com> Add tests for background tinting of AppCompatTextView

Change-Id: Ie4db66bd3fc0dbafdcbfe9d05742ab5220da010c
ppCompatTintableViewActions.java
estUtils.java
estUtilsMatchers.java
87d26d017740f9f0f9dabadfbc66fa99c5c99334 07-Jan-2016 Kirill Grouchnikov <kirillg@google.com> AppCompatTextView tests for allCaps

Change-Id: Ib5c81365d2a5597fd6009e2d39f5637b2b88c9b5
ppCompatTextViewActions.java
733d0b2acb07ede7455b9d020901a10586053923 04-Jan-2016 Chris Banes <chrisbanes@google.com> Fix ToolbarActionBar invalidating destroyed Activities

BUG: 26375399
Change-Id: I4e4298748b9040b8ee307bbf1c09450618bdd494
aseTestActivity.java
1d8515a3b783e9b091bea2891606b466515b4fdd 18-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Cursor-based tests for AlertDialog

Change-Id: Ib2bc6f6bcc8fd8b29f506159d497bd115668da9a
estUtilsMatchers.java
2d18d3a4b92369971ed446cf54d98fb0fc55646a 17-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Second pass for AlertDialog tests.

* Adding a bit more logic to the existing tests to test getListView API.
* Testing setMultiChoiceItems and setSingleChoiceItems APIs.o

Change-Id: Id0d3bdcaa03724f8848c683f057379c8f3e51f12
estUtilsMatchers.java
244abf1fee3fe4fab72a1d8925407e29219940be 16-Dec-2015 Kirill Grouchnikov <kirillg@google.com> First pass for testing AlertDialog.

Change-Id: I0ed035a6e9356ddb3de1d030c67476fda5c81e9b
estUtils.java
estUtilsMatchers.java
a37e9311de7ff4407104965ff66146f87e55ba5c 15-Dec-2015 Kirill Grouchnikov <kirillg@google.com> First pass for ListPopupWindow testing

* Basic content display
* Anchoring to the specific view
* Dismissal via API call or tapping outside the bounds
* Outside tap to dismiss a non-modal window should deliver
the tap to the underlying view
* Item click via API or tap

Change-Id: I00b9c4f1c90646075f0caeddeda81d14b6afebea
aseTestActivity.java
30c25a404365719cbe21a0886ddbe8be544c8e90 02-Dec-2015 Kirill Grouchnikov <kirillg@google.com> First pass for basic testing of DrawerLayout with Espresso

Change-Id: I01d543ccfb272dae9307790426b7f0cd712ac865
hakespeare.java