Merge lp:~tpeeters/ubuntu-ui-toolkit/noViewReference into lp:ubuntu-ui-toolkit/staging
- noViewReference
- Merge into staging
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Cris Dywan | ||||
Approved revision: | 1981 | ||||
Merged at revision: | 1981 | ||||
Proposed branch: | lp:~tpeeters/ubuntu-ui-toolkit/noViewReference | ||||
Merge into: | lp:ubuntu-ui-toolkit/staging | ||||
Diff against target: |
56 lines (+10/-10) 2 files modified
src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml (+1/-1) tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml (+9/-9) |
||||
To merge this branch: | bzr merge lp:~tpeeters/ubuntu-ui-toolkit/noViewReference | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
ubuntu-sdk-build-bot | continuous-integration | Approve | |
Cris Dywan | Approve | ||
Zsombor Egri | Approve | ||
PS Jenkins bot | continuous-integration | Pending | |
Review via email:
|
Commit message
Fix reference error in PullToRefreshStyle.
Description of the change
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Cris Dywan (kalikiana) wrote : | # |
There's no test case...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
FAILED: Continuous integration, rev:1980
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
FAILED: Continuous integration, rev:1980
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1980
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1980
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1980
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
FAILED: Continuous integration, rev:1980
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1980
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1980
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1980
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
- 1981. By Tim Peeters
-
rename view to flickable
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1981
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1981
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1981
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1981
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1981
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1981
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1981
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1981
https:/
Executed test runs:
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1981
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
Preview Diff
1 | === modified file 'src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml' |
2 | --- src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml 2016-05-11 21:17:26 +0000 |
3 | +++ src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml 2016-05-18 11:32:26 +0000 |
4 | @@ -143,7 +143,7 @@ |
5 | if (visible) { |
6 | // Make sure the flickable is back inside its bounds when |
7 | // the Page becomes visible again: |
8 | - view.returnToBounds(); |
9 | + control.target.returnToBounds(); |
10 | } |
11 | } |
12 | |
13 | |
14 | === modified file 'tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml' |
15 | --- tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml 2016-05-13 10:16:27 +0000 |
16 | +++ tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml 2016-05-18 11:32:26 +0000 |
17 | @@ -24,16 +24,16 @@ |
18 | height: units.gu(71) |
19 | id: root |
20 | Flickable { |
21 | - id: view |
22 | + id: flickable |
23 | anchors.fill: parent |
24 | - contentHeight: 1.6*view.height |
25 | + contentHeight: 1.6*flickable.height |
26 | Label { |
27 | anchors.centerIn: parent |
28 | text: "void" |
29 | } |
30 | PullToRefresh { |
31 | id: pullToRefresh |
32 | - parent: view |
33 | + parent: flickable |
34 | onRefresh: { |
35 | refreshing = true; |
36 | refreshing = false; |
37 | @@ -46,13 +46,13 @@ |
38 | when: windowShown |
39 | |
40 | function test_reposition_after_refresh_bug1578619() { |
41 | - var initialTopMargin = view.topMargin; |
42 | - var initialContentY = view.contentY; |
43 | - flick(view, view.width/2, units.gu(10), 0, units.gu(40)); |
44 | - tryCompare(view, "moving", false); |
45 | - tryCompare(view, "topMargin", initialTopMargin, 500, |
46 | + var initialTopMargin = flickable.topMargin; |
47 | + var initialContentY = flickable.contentY; |
48 | + flick(flickable, flickable.width/2, units.gu(10), 0, units.gu(40)); |
49 | + tryCompare(flickable, "moving", false); |
50 | + tryCompare(flickable, "topMargin", initialTopMargin, 500, |
51 | "Initial topMargin of flickable is not restored after refreshing."); |
52 | - tryCompare(view, "contentY", initialContentY, 500, |
53 | + tryCompare(flickable, "contentY", initialContentY, 500, |
54 | "Initial contentY of flickable is not restored after refreshing.") |
55 | } |
56 | } |
Thanks.