Merge lp:~canonical-platform-qa/unity8/fix1446846-test_slider_revert into lp:unity8

Proposed by Leo Arias on 2015-05-18
Status: Work in progress
Proposed branch: lp:~canonical-platform-qa/unity8/fix1446846-test_slider_revert
Merge into: lp:unity8
Diff against target: 26 lines (+8/-2)
1 file modified
tests/autopilot/unity8/indicators/__init__.py (+8/-2)
To merge this branch: bzr merge lp:~canonical-platform-qa/unity8/fix1446846-test_slider_revert
Reviewer Review Type Date Requested Status
Leo Arias (community) Disapprove on 2015-05-22
Albert Astals Cid (community) 2015-05-18 Needs Fixing on 2015-05-22
PS Jenkins bot continuous-integration Needs Fixing on 2015-05-18
Review via email: mp+259415@code.launchpad.net

Commit Message

Fix one of the failing tests reported in bug #1446846: The slider value is reverted so we need to check that we have moved the slider to the right value before releasing the finger.

To post a comment you must log in.
Leo Arias (elopio) wrote :

> Doesn't https://code.launchpad.net/~nick-dedekind/unity8/fix-autopilot-
> failures-1446846/+merge/258411 already fix them?

No, it doesn't. Take a look at nick's branch and you will see the error that this branch fixes.

But, there is a bug in autopilot that prevents this to land: https://bugs.launchpad.net/autopilot/+bug/1457212

We could either do a quicker move in here, cast the pointer to it's backend, or fix the bug in autopilot.

Back to work in progress.

Albert Astals Cid (aacid) wrote :

This is the wrong fix, you're just making the test pass, but if the slider is reverted, we need to find why it's reverted instead of ignore it, right?

review: Needs Fixing
Leo Arias (elopio) wrote :

tsdgeos: I think you are right. I misunderstood the test and dednick has a better branch to solve the problem.

review: Disapprove

Unmerged revisions

1778. By Leo Arias on 2015-05-18

Fix one of the failing tests reported in bug #1446846: The slider value is reverted so we need to check that we have moved the slider to the right value before releasing the finger.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/unity8/indicators/__init__.py'
2--- tests/autopilot/unity8/indicators/__init__.py 2015-04-28 15:20:13 +0000
3+++ tests/autopilot/unity8/indicators/__init__.py 2015-05-18 18:15:40 +0000
4@@ -187,8 +187,11 @@
5 start_y = stop_y = y + height/2
6 stop_x = x
7
8- self.pointing_device.drag(start_x, start_y, stop_x, stop_y, rate)
9+ self.pointing_device.move(start_x, start_y, rate=rate)
10+ self.pointing_device.press()
11+ self.pointing_device.move(stop_x, stop_y, rate=rate)
12 self.value.wait_for(self.minimumValue, timeout)
13+ self.pointing_device.release()
14
15 def slide_right(self, timeout=10):
16 x, y, width, height = self.globalRect
17@@ -198,5 +201,8 @@
18 start_y = stop_y = y + height/2
19 stop_x = x + width
20
21- self.pointing_device.drag(start_x, start_y, stop_x, stop_y, rate)
22+ self.pointing_device.move(start_x, start_y, rate=rate)
23+ self.pointing_device.press()
24+ self.pointing_device.move(stop_x, stop_y, rate=rate)
25 self.value.wait_for(self.maximumValue, timeout)
26+ self.pointing_device.release()

Subscribers

People subscribed via source and target branches