Merge lp:~aacid/unity8/broken_collapse into lp:unity8
- broken_collapse
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Albert Astals Cid |
Approved revision: | 580 |
Merged at revision: | 579 |
Proposed branch: | lp:~aacid/unity8/broken_collapse |
Merge into: | lp:unity8 |
Diff against target: |
114 lines (+34/-3) 4 files modified
Components/FilterGrid.qml (+1/-1) Dash/DashFilterGrid.qml (+6/-2) Dash/GenericScopeView.qml (+2/-0) tests/qmltests/Dash/tst_GenericScopeView.qml (+25/-0) |
To merge this branch: | bzr merge lp:~aacid/unity8/broken_collapse |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Michał Sawicz | Approve | ||
Robert Bruce Park (community) | Needs Fixing | ||
Review via email: mp+197844@code.launchpad.net |
Commit message
Fix collapsing of categories not working and the expansion/
+test
Description of the change
PS Jenkins bot (ps-jenkins) wrote : | # |
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:576
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:577
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:578
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Robert Bruce Park (robru) wrote : | # |
Actually I just tried to merge this manually and found a conflict with trunk. Can you resolve it please?
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:579
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:580
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) : | # |
Preview Diff
1 | === modified file 'Components/FilterGrid.qml' |
2 | --- Components/FilterGrid.qml 2013-11-26 16:32:47 +0000 |
3 | +++ Components/FilterGrid.qml 2013-12-06 10:37:16 +0000 |
4 | @@ -67,7 +67,7 @@ |
5 | property alias highlightIndex: iconTileGrid.highlightIndex |
6 | readonly property alias currentItem: iconTileGrid.currentItem |
7 | |
8 | - implicitHeight: !filterAnimation.running ? childrenRect.height : height |
9 | + height: !filterAnimation.running ? childrenRect.height : height |
10 | clip: filterAnimation.running |
11 | |
12 | NumberAnimation { |
13 | |
14 | === modified file 'Dash/DashFilterGrid.qml' |
15 | --- Dash/DashFilterGrid.qml 2013-11-26 16:32:47 +0000 |
16 | +++ Dash/DashFilterGrid.qml 2013-12-06 10:37:16 +0000 |
17 | @@ -37,7 +37,7 @@ |
18 | expandable: filterGrid.expandable |
19 | delegateCreationBegin: filterGrid.delegateCreationBegin |
20 | delegateCreationEnd: filterGrid.delegateCreationEnd |
21 | - implicitHeight: filterGrid.implicitHeight |
22 | + height: filterGrid.height |
23 | margins: filterGrid.margins |
24 | uncollapsedHeight: filterGrid.uncollapsedHeight |
25 | verticalSpacing: filterGrid.verticalSpacing |
26 | @@ -48,7 +48,7 @@ |
27 | |
28 | FilterGrid { |
29 | id: filterGrid |
30 | - anchors.fill: parent |
31 | + width: dashFilterGrid.width |
32 | minimumHorizontalSpacing: units.gu(0.5) |
33 | delegateWidth: units.gu(11) |
34 | delegateHeight: units.gu(9.5) |
35 | @@ -56,5 +56,9 @@ |
36 | model: dashFilterGrid.model |
37 | filter: dashFilterGrid.filter |
38 | highlightIndex: dashFilterGrid.highlightIndex |
39 | + |
40 | + onFilterChanged: { |
41 | + dashFilterGrid.filter = filter |
42 | + } |
43 | } |
44 | } |
45 | |
46 | === modified file 'Dash/GenericScopeView.qml' |
47 | --- Dash/GenericScopeView.qml 2013-11-30 14:24:29 +0000 |
48 | +++ Dash/GenericScopeView.qml 2013-12-06 10:37:16 +0000 |
49 | @@ -126,6 +126,7 @@ |
50 | |
51 | delegate: ListItems.Base { |
52 | id: baseItem |
53 | + objectName: "dashCategory" + category |
54 | highlightWhenPressed: false |
55 | |
56 | readonly property bool expandable: rendererLoader.item ? rendererLoader.item.expandable : false |
57 | @@ -271,6 +272,7 @@ |
58 | |
59 | sectionProperty: "name" |
60 | sectionDelegate: ListItems.Header { |
61 | + objectName: "dashSectionHeader" + delegate.category |
62 | property var delegate: categoryView.item(delegateIndex) |
63 | width: categoryView.width |
64 | text: section |
65 | |
66 | === modified file 'tests/qmltests/Dash/tst_GenericScopeView.qml' |
67 | --- tests/qmltests/Dash/tst_GenericScopeView.qml 2013-12-05 18:01:29 +0000 |
68 | +++ tests/qmltests/Dash/tst_GenericScopeView.qml 2013-12-06 10:37:16 +0000 |
69 | @@ -19,6 +19,7 @@ |
70 | import Unity 0.1 |
71 | import ".." |
72 | import "../../../Dash" |
73 | +import "../../../Components" |
74 | import Ubuntu.Components 0.1 |
75 | import Unity.Test 0.1 as UT |
76 | |
77 | @@ -43,6 +44,7 @@ |
78 | GenericScopeView { |
79 | id: genericScopeView |
80 | anchors.fill: parent |
81 | + searchHistory: SearchHistoryModel {} |
82 | |
83 | UT.UnityTestCase { |
84 | name: "GenericScopeView" |
85 | @@ -223,6 +225,29 @@ |
86 | tryCompare(genericScopeView.scope, "searchQuery", "") |
87 | } |
88 | |
89 | + function test_filter_expand_collapse() { |
90 | + // wait for the item to be there |
91 | + tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0") != undefined; }, true); |
92 | + |
93 | + var header = findChild(genericScopeView, "dashSectionHeader0") |
94 | + var category = findChild(genericScopeView, "dashCategory0") |
95 | + |
96 | + waitForRendering(header); |
97 | + verify(category.expandable); |
98 | + verify(category.filtered); |
99 | + |
100 | + var initialHeight = category.height; |
101 | + var middleHeight; |
102 | + mouseClick(header, header.width / 2, header.height / 2); |
103 | + tryCompareFunction(function() { middleHeight = category.height; return category.height > initialHeight; }, true); |
104 | + tryCompare(category, "filtered", false); |
105 | + verify(category.height > middleHeight); |
106 | + |
107 | + mouseClick(header, header.width / 2, header.height / 2); |
108 | + verify(category.expandable); |
109 | + tryCompare(category, "filtered", true); |
110 | + } |
111 | + |
112 | function test_showPreviewCarousel() { |
113 | tryCompareFunction(function() { return findChild(genericScopeView, "carouselDelegate") != undefined; }, true); |
114 | var tile = findChild(genericScopeView, "carouselDelegate"); |
PASSED: Continuous integration, rev:574 jenkins. qa.ubuntu. com/job/ unity8- ci/1827/ jenkins. qa.ubuntu. com/job/ generic- mediumtests- trusty/ 1447 jenkins. qa.ubuntu. com/job/ generic- mediumtests- trusty- touch/1415 jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- trusty/ 570 jenkins. qa.ubuntu. com/job/ unity8- trusty- amd64-ci/ 350 jenkins. qa.ubuntu. com/job/ unity8- trusty- armhf-ci/ 351 jenkins. qa.ubuntu. com/job/ unity8- trusty- armhf-ci/ 351/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ unity8- trusty- i386-ci/ 350 jenkins. qa.ubuntu. com/job/ autopilot- testrunner- otto-trusty/ 1287 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- amd64/1447 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- amd64/1447/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- armhf/1415 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- armhf/1415/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- runner- mako/3946 s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 2097
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity8- ci/1827/ rebuild
http://