sspbond007 / uispec

Automatically exported from code.google.com/p/uispec
Other
0 stars 0 forks source link

scrolling support for UIScrollView class #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. scroll on a grid of super class UIScrollView

What is the expected output? What do you see instead?
[[app.view accessibilityValue:@"gridView"] scrollDown:5] should scroll.
Nothing happens

What version of the product are you using? On what operating system?
UISpec 1.1, Mac OSX/iOS

Please provide any additional information below.
UIQuery line#132 has no check for UIScrollView
UIQueryTableView has implementation of scrollToBottom, scrollDown.
but for UITableView
There is no other implementation of scrollToBottom, scrollDown in entire build

So scrolling for UIScrollView is not supported?

Original issue reported on code.google.com by waseem.m...@gmail.com on 21 Mar 2011 at 10:09

GoogleCodeExporter commented 8 years ago
Hi,
I've implemented functionality for above usage, attached are my changes.

Also:
Update UIQuery.m to include following code @ line# 138 & UITraversal.m @ line#85
else if ([className isEqualToString:@"UIScrollView"]) {
        return [UIQueryScrollView withViews:array className:className];
    }
For now I have only implemented scrollToBottom for UIScrollView as I was in 
need of it.

Original comment by waseem.m...@gmail.com on 22 Mar 2011 at 3:53

Attachments:

GoogleCodeExporter commented 8 years ago
Also I've reused Brain Knorr's UIQueryTableView to implement scrolling for 
UIQueryScrollView in order to have the same methods for both TableView & 
ScrollView.

Original comment by waseem.m...@gmail.com on 22 Mar 2011 at 2:05