Merge lp:~townsend/unity/fix-xpathselect-sorting into lp:unity
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Stephen M. Webb | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 3611 | ||||
Proposed branch: | lp:~townsend/unity/fix-xpathselect-sorting | ||||
Merge into: | lp:unity | ||||
Diff against target: |
114 lines (+20/-1) 6 files modified
launcher/AbstractLauncherIcon.h (+2/-0) launcher/LauncherIcon.cpp (+7/-0) launcher/LauncherIcon.h (+3/-0) launcher/MockLauncherIcon.h (+3/-0) launcher/SwitcherModel.cpp (+3/-0) tests/autopilot/unity/emulators/switcher.py (+2/-1) |
||||
To merge this branch: | bzr merge lp:~townsend/unity/fix-xpathselect-sorting | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Brandon Schaefer (community) | Approve | ||
Review via email: mp+198586@code.launchpad.net |
Commit message
Due to a change in xpathselect1.4, this fixes a sorting issue of Switcher icons for AP tests.
Description of the change
= Issue =
XPathSelect1.4 now sorts introspection lists by it's id. For some of the Switcher AP tests, this broke some tests due to its assumption that lists will be preserved in the order they were created, but this is a bad assumption.
= Fix =
Add an order member variable the the LauncherIcon class so any derived classes that want to preserve the introspection order can do so. The AP Switcher emulator can now sort based on this order, so the icons will be in the order that are presented in the Switcher.
There are at least 8 tests that fail due to this. An example AP test that failed before is unity.tests.
FAILED: Continuous integration, rev:3609 jenkins. qa.ubuntu. com/job/ unity-ci/ 524/ jenkins. qa.ubuntu. com/job/ unity-trusty- amd64-ci/ 55/console jenkins. qa.ubuntu. com/job/ unity-trusty- armhf-ci/ 55/console jenkins. qa.ubuntu. com/job/ unity-trusty- i386-ci/ 58/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity- ci/524/ rebuild
http://