osama-raddad / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

scrollTo requires only ScrollView parent. not scroll-able ones like HorizontalScrollView #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build up view hierarch with HorizontalScrollView and several child views in 
it.
2. in test, onView(withId(id_of_child_view)).perform(scrollTo())
3. failed to perform scrollTo action

What is the expected output? What do you see instead?

HorizontalScrollView should scrolls to the view. But it failed. (It checks if 
view is descendent of 'ScrollView' but it isn't)

What version of the product are you using? On what operating system?

KitKat/Nexus4

Please provide any additional information below.

I tried to extend ScrollToAction and override getConstraints() in vain because 
ScrollToAction is final class.
So I copied it into a new name 'ScrollToAciton2' and then used it in test. This 
worked.

Original issue reported on code.google.com by Jooyung....@gmail.com on 22 Nov 2013 at 1:12

GoogleCodeExporter commented 9 years ago
fixed in 1.1

Original comment by thoma...@google.com on 9 Jan 2014 at 12:33