Merge lp:~aacid/unity8/testIndicatorsMenuFix into lp:unity8

Proposed by Albert Astals Cid on 2015-12-10
Status: Merged
Approved by: Michael Zanetti on 2015-12-17
Approved revision: 2080
Merged at revision: 2115
Proposed branch: lp:~aacid/unity8/testIndicatorsMenuFix
Merge into: lp:unity8
Diff against target: 27 lines (+3/-3)
1 file modified
tests/qmltests/Panel/tst_IndicatorsMenu.qml (+3/-3)
To merge this branch: bzr merge lp:~aacid/unity8/testIndicatorsMenuFix
Reviewer Review Type Date Requested Status
Michael Zanetti (community) 2015-12-10 Approve on 2015-12-17
PS Jenkins bot continuous-integration Needs Fixing on 2015-12-10
Review via email: mp+280165@code.launchpad.net

Commit Message

Fix dragging so that test passes on Xenial

Description of the Change

 * Are there any related MPs required for this MP to build/function as expected?
No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
N/A

 * Did you make sure that your branch does not contain spurious tags?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Michael Zanetti (mzanetti) wrote :

Test passes for me on xenial even without that patch... Anyhow, this doesn't break it either...

 * Did you perform an exploratory manual test run of the code change and any related functionality?

yes

 * Did CI run pass? If not, please explain why.

at least not failed on this test :)

 * Did you make sure that the branch does not contain spurious tags?

yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/qmltests/Panel/tst_IndicatorsMenu.qml'
2--- tests/qmltests/Panel/tst_IndicatorsMenu.qml 2015-11-19 16:55:31 +0000
3+++ tests/qmltests/Panel/tst_IndicatorsMenu.qml 2015-12-10 16:04:36 +0000
4@@ -243,12 +243,12 @@
5
6 // next time position will have moved.
7 var nextItem = get_indicator_item(1);
8- var nextItemMappedPosition = root.mapFromItem(nextItem, nextItem.width/2, nextItem.height/2);
9+ var nextItemMappedPositionX = firstItemMappedPosition.x + firstItem.width;
10
11 // 1) Flick mouse down to bottom
12 touchFlick(indicatorsMenu,
13 firstItemMappedPosition.x, indicatorsMenu.minimizedPanelHeight * 2,
14- nextItemMappedPosition.x, indicatorsMenu.openedHeight / 3,
15+ nextItemMappedPositionX, indicatorsMenu.openedHeight / 3,
16 false /* beginTouch */, false /* endTouch */,
17 units.gu(50) /* speed */, 5 /* iterations */); // more samples needed for accurate velocity
18
19@@ -256,7 +256,7 @@
20 // after waiting in the same spot with touch down, it should update to the next item.
21 tryCompare(indicatorItemRow, "currentItem", nextItem);
22
23- touchRelease(indicatorsMenu, nextItemMappedPosition.x, indicatorsMenu.openedHeight / 3);
24+ touchRelease(indicatorsMenu, nextItemMappedPositionX, indicatorsMenu.openedHeight / 3);
25 }
26 }
27 }

Subscribers

People subscribed via source and target branches