Make it easier to select a custom proxy object with a class name different from the QML type
Bug #1337004 reported by
Leo Arias
on 2014-07-02
This bug affects 4 people
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Autopilot |
Undecided
|
Christopher Lee | ||
Bug Description
Since bug #1210260 was fixed, custom proxy objects can now extend the classmethod validate_
However it's still hard to get it right. I keep getting other objects matching the validation, and in order to make it work I can't pass the class as the first parameter of select_single.
This should be easier and clearer. Lets say that I have many QML types 'ItemPage', each one with a different object name. If I want to make a different custom proxy object for each one, I should be able to do:
main_view.
main_view.
where TestPage1 and TestPage2 are not on the QML tree.
Related branches
lp:~canonical-platform-qa/autopilot/fix-cpo-having-different-name-1337004
- PS Jenkins bot: Approve (continuous-integration) on 2015-07-20
- Max Brustkern (community): Approve on 2015-07-07
-
Diff: 168 lines (+110/-2)4 files modifiedautopilot/introspection/dbus.py (+38/-1)
autopilot/tests/functional/test_input_stack.py (+1/-1)
autopilot/tests/functional/test_introspection_features.py (+29/-0)
autopilot/tests/unit/test_introspection_dbus.py (+42/-0)
Christopher Lee (veebers)
on 2015-05-21
| Changed in autopilot: | |
| assignee: | nobody → Christopher Lee (veebers) |
Christopher Lee (veebers)
on 2015-06-18
| Changed in autopilot: | |
| status: | New → In Progress |
To post a comment you must log in.

Fix committed into lp:autopilot at revision 567, scheduled for release in autopilot, milestone 1.4