Merge lp:~canonical-platform-qa/ubuntu-ui-toolkit/fix1401517-overwrite_swipe_borders into lp:ubuntu-ui-toolkit/staging
| Status: | Merged |
|---|---|
| Approved by: | Zsombor Egri on 2015-04-16 |
| Approved revision: | 1381 |
| Merged at revision: | 1478 |
| Proposed branch: | lp:~canonical-platform-qa/ubuntu-ui-toolkit/fix1401517-overwrite_swipe_borders |
| Merge into: | lp:ubuntu-ui-toolkit/staging |
| Prerequisite: | lp:~canonical-platform-qa/ubuntu-ui-toolkit/grid_units |
| Diff against target: |
123 lines (+62/-11) 2 files modified
tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_flickable.py (+18/-10) tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_flickable.py (+44/-1) |
| To merge this branch: | bzr merge lp:~canonical-platform-qa/ubuntu-ui-toolkit/fix1401517-overwrite_swipe_borders |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | 2015-02-07 | Approve on 2015-04-16 |
| Zsombor Egri (community) | 2015-02-07 | Approve on 2015-04-16 | |
| Brendan Donegan (community) | Approve on 2015-04-16 | ||
| Leo Arias (community) | Approve on 2015-04-15 | ||
| Albert Astals Cid (community) | 2015-02-07 | Abstain on 2015-02-13 | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2014-12-17.
Commit Message
Make it possible to overwrite the bottom margin for the flickable autopilot helper.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1372
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1373
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Tim Peeters (tpeeters) wrote : | # |
37 elif direction == 'above':
38 - start_y = top
39 - stop_y = bottom
40 + start_y = top + 5
41 + stop_y = bottom - 5
to be consistent, you should use
start_y = top + self.margin_
| Tim Peeters (tpeeters) wrote : | # |
+ # Swiping from below can open the toolbar or trigger the bottom edge
9 + # gesture. Use this margin to start a swipe that will not be that close to
10 + # the bottom edge.
11 + margin_
Where did you get the 25 pixels from? Shouldn't we use grid units here?
We have this in the UITK Panel.qml:
/*!
The size (height for top or bottom-aligned panels, width for left or right-aligned
panels) of the mouse area used to detect edge swipes to open the panel, when
the panel is not opened. Default value: units.gu(2).
*/
property real triggerSize: units.gu(2)
So apps that use the Panel with default settings will need a margin of 2 grid units. Of course apps can override this with their own value (or not use the Panel at all and implement their own bottom-edge).
| Leo Arias (elopio) wrote : | # |
@albert, I more or less understand what you did with the drags and the rate.
What I don't understand is why you add the rate to the top and subtract it from the bottom. I removed that part, so can you please take a look and confirm I'm not breaking anything from your change?
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1378
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
Leo, the idea +/- rate was already there, i kept it as "buffer" zone since we're doing a integer division and then multiplying back byu the rate we may get a big enough number and i did not want to end up past top/bottom but i guess that it's not really possible.
| Leo Arias (elopio) wrote : | # |
The prerequisite has a test failing in mako. Work in progress while we find the issue.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1380
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Federico Gimenez (fgimenez) wrote : | # |
The failing tests have been fixed and the prerequisite has already landed, back to Needs review
| Brendan Donegan (brendan-donegan) wrote : | # |
LGTM +1
| Leo Arias (elopio) wrote : | # |
We already have functional tests that do the swiping for real, so I think it's ok for this case to use a mock. One of those swiping tests failed in the latest execution, which makes me uneasy. Can someone retrigger the jenkins job? I don't have the vpn configured in my laptop, I will do it as soon as I get some quiet time.
- 1381. By Federico Gimenez on 2015-04-15
-
Merged with staging
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1380
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Leo Arias (elopio) wrote : | # |
+1. There seems to be an qmlscene crash making some tests fail, but on this run all the tests affected are passing.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1381
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Brendan Donegan (brendan-donegan) wrote : | # |
My previous comment didn't come out as an Approve. Approving again

FAILED: Continuous integration, rev:1371 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- ci/1337/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 617 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-amd64- ci/64 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-armhf- ci/67 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-armhf- ci/67/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-i386- ci/64 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 530 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 615 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 615/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 16679
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- sdk-team- ubuntu- ui-toolkit- staging- ci/1337/ rebuild
http://