Merge lp:~dobey/unity8/no-more-click into lp:unity8
- no-more-click
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Albert Astals Cid |
Approved revision: | 2778 |
Merged at revision: | 2801 |
Proposed branch: | lp:~dobey/unity8/no-more-click |
Merge into: | lp:unity8 |
Diff against target: |
393 lines (+16/-172) 11 files modified
debian/control (+0/-2) qml/Dash/CardGrid.qml (+2/-3) qml/Dash/CardTool.qml (+2/-26) qml/Dash/GenericScopeView.qml (+1/-1) qml/Dash/ScopesListCategory.qml (+1/-1) tests/autopilot/unity8/dash.py (+1/-17) tests/autopilot/unity8/shell/tests/test_helpers.py (+0/-49) tests/mocks/Unity/fake_scopes.cpp (+0/-1) tests/qmltests/Dash/tst_Dash.qml (+1/-48) tests/qmltests/Dash/tst_DashContent.qml (+3/-3) tests/qmltests/Dash/tst_GenericScopeView.qml (+5/-21) |
To merge this branch: | bzr merge lp:~dobey/unity8/no-more-click |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Unity8 CI Bot | continuous-integration | Approve | |
Albert Astals Cid (community) | Approve | ||
Ubuntu Unity PS integration team | Pending | ||
Review via email: mp+315412@code.launchpad.net |
Commit message
Remove dependencies on clickscope.
Description of the change
* Are there any related MPs required for this MP to build/function as expected?
No. But other changes in silo 2272 go along nicely with this change.
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes. Uninstalling unity-scope-click in a VM with unity8 behaves fine.
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
Yes.
* If you changed the UI, has there been a design review?
App drawer replacement for click scope is already in unity8, so N/A.
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2771
https:/
Executed test runs:
SUCCESS: https:/
UNSTABLE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Albert Astals Cid (aacid) wrote : | # |
Please remove this mentions of the clickscope
./Dash/
favoriteEnabled: scopeView.scope && scopeView.scope.id !== "clickscope"
./Dash/
showStar: model.scopeId !== "clickscope" && (root.isFavorit
./Dash/
readonly property bool isAppLikeScope: scopeId === "clickscope" || scopeId === "libertine-
./Dash/
readonly property bool isAppLikeScopeA
for isAppLikeScopeA
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2771
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2771
https:/
Executed test runs:
SUCCESS: https:/
UNSTABLE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2771
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
dobey (dobey) wrote : | # |
On Wed, 2017-01-25 at 16:51 +0000, Albert Astals Cid wrote:
> for isAppLikeScopeA
> false together with the ifs) that depend on it
I left this value in, as it seems to have a check for libertine scope
as well, but removed the clickscope reference here, as well as the
others you mentioned.
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2772
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
Albert Astals Cid (aacid) wrote : | # |
Actually on a second thought I'm not sure that last change i suggested is a good idea.
Will the user still be able to install the click scope even if we don't ship it by default?
If so I guess we want the CardTool.qml changes back in
dobey (dobey) wrote : | # |
Yes it will still be installable.
On Thu, 2017-01-26 at 08:27 +0000, Albert Astals Cid wrote:
> Actually on a second thought I'm not sure that last change i
> suggested is a good idea.
>
> Will the user still be able to install the click scope even if we
> don't ship it by default?
>
> If so I guess we want the CardTool.qml changes back in
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2773
https:/
Executed test runs:
SUCCESS: https:/
UNSTABLE: https:/
UNSTABLE: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2775
https:/
Executed test runs:
SUCCESS: https:/
UNSTABLE: https:/
UNSTABLE: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2776
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2776
https:/
Executed test runs:
SUCCESS: https:/
UNSTABLE: https:/
UNSTABLE: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Albert Astals Cid (aacid) wrote : | # |
Yeah i forgot about the genericscope tests :D
You'll need http://
- 2777. By Albert Astals Cid
-
More test fixes.
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2777
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2777
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
UNSTABLE: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:2777
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Albert Astals Cid (aacid) wrote : | # |
Wops, one more thing, can you remove the
// ↓ This is the ubuntu store icon
comment from CardGrid.qml, makes no sense anymore :D
Albert Astals Cid (aacid) wrote : | # |
* 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.
Yes
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2778
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:2778
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Preview Diff
1 | === modified file 'debian/control' |
2 | --- debian/control 2017-01-24 07:38:04 +0000 |
3 | +++ debian/control 2017-01-31 14:31:04 +0000 |
4 | @@ -141,7 +141,6 @@ |
5 | Recommends: indicator-keyboard, |
6 | indicator-session, |
7 | unity-greeter-session-broadcast, |
8 | - unity-scope-click, |
9 | Suggests: unity-scope-mediascanner2, |
10 | Breaks: indicator-network (<< 0.5.1+14.10.20141014), |
11 | ubuntu-touch-session (<< 0.107), |
12 | @@ -191,7 +190,6 @@ |
13 | python3-gi, |
14 | qttestability-autopilot (>= 1.4), |
15 | ubuntu-ui-toolkit-autopilot (>= 1.3.2030), |
16 | - unity-scope-click, |
17 | unity8 (= ${source:Version}), |
18 | unity8-tests (= ${source:Version}), |
19 | url-dispatcher-tools, |
20 | |
21 | === modified file 'qml/Dash/CardGrid.qml' |
22 | --- qml/Dash/CardGrid.qml 2016-10-12 14:29:02 +0000 |
23 | +++ qml/Dash/CardGrid.qml 2017-01-31 14:31:04 +0000 |
24 | @@ -25,8 +25,7 @@ |
25 | return cardTool.template["collapsed-rows"]; |
26 | } |
27 | |
28 | - // ↓ This is the ubuntu store icon |
29 | - readonly property string backgroundShapeStyle: cardTool.isAppLikeScope && !cardTool.isAppLikeScopeAppCategory ? "shadow" : "flat" |
30 | + readonly property string backgroundShapeStyle: "flat" |
31 | |
32 | expandedHeight: grid.totalContentHeight |
33 | collapsedHeight: Math.min(grid.contentHeightForRows(collapsedRows, grid.cellHeight), expandedHeight) |
34 | @@ -46,7 +45,7 @@ |
35 | ResponsiveGridView { |
36 | id: grid |
37 | anchors.fill: parent |
38 | - minimumHorizontalSpacing: (cardTool.isAppLikeScopeAppCategory && cardTool.isWideView) ? units.gu(5) : units.gu(1) |
39 | + minimumHorizontalSpacing: cardTool.isWideView ? units.gu(5) : units.gu(1) |
40 | delegateWidth: cardTool.cardWidth |
41 | delegateHeight: cardTool.cardHeight |
42 | verticalSpacing: units.gu(1) |
43 | |
44 | === modified file 'qml/Dash/CardTool.qml' |
45 | --- qml/Dash/CardTool.qml 2016-10-12 14:29:02 +0000 |
46 | +++ qml/Dash/CardTool.qml 2017-01-31 14:31:04 +0000 |
47 | @@ -77,16 +77,8 @@ |
48 | return layout; |
49 | } |
50 | |
51 | - readonly property bool isAppLikeScope: scopeId === "clickscope" || scopeId === "libertine-scope.ubuntu_libertine-scope" |
52 | - readonly property bool isAppLikeScopeAppCategory: ((scopeId === "clickscope" && (categoryId === "predefined" || categoryId === "local")) |
53 | - || (scopeId === "libertine-scope.ubuntu_libertine-scope" && categoryId !== "hint")) |
54 | - |
55 | readonly property string artShapeStyle: { |
56 | - if (isAppLikeScope) { |
57 | - return isAppLikeScopeAppCategory ? "icon" : "flat"; |
58 | - } else { |
59 | - return categoryLayout === "carousel" ? "shadow" : "flat" |
60 | - } |
61 | + return categoryLayout === "carousel" ? "shadow" : "flat" |
62 | } |
63 | |
64 | // FIXME ? This seems like it should not be needed, but on Qt 5.4 + phone |
65 | @@ -121,18 +113,6 @@ |
66 | If -1, should use implicit width of the actual card. |
67 | */ |
68 | readonly property real cardWidth: { |
69 | - if (isAppLikeScopeAppCategory) { |
70 | - if (!isNarrowView) { |
71 | - if (isWideView) { |
72 | - return units.gu(11); |
73 | - } else { |
74 | - return units.gu(10); |
75 | - } |
76 | - } else { |
77 | - return units.gu(12); |
78 | - } |
79 | - } |
80 | - |
81 | switch (categoryLayout) { |
82 | case "grid": |
83 | case "vertical-journal": |
84 | @@ -191,11 +171,7 @@ |
85 | readonly property int headerHeight: cardLoader.item ? cardLoader.item.headerHeight : 0 |
86 | |
87 | readonly property size artShapeSize: { |
88 | - if (isAppLikeScopeAppCategory) { |
89 | - return Qt.size(units.gu(8), units.gu(7.5)); |
90 | - } else { |
91 | - return cardLoader.item ? cardLoader.item.artShapeSize : Qt.size(0, 0) |
92 | - } |
93 | + return cardLoader.item ? cardLoader.item.artShapeSize : Qt.size(0, 0) |
94 | } |
95 | |
96 | QtObject { |
97 | |
98 | === modified file 'qml/Dash/GenericScopeView.qml' |
99 | --- qml/Dash/GenericScopeView.qml 2016-11-29 09:37:25 +0000 |
100 | +++ qml/Dash/GenericScopeView.qml 2017-01-31 14:31:04 +0000 |
101 | @@ -582,7 +582,7 @@ |
102 | showSignatureLine: !showBackButton |
103 | searchEntryEnabled: true |
104 | settingsEnabled: scopeView.scope && scopeView.scope.settings && scopeView.scope.settings.count > 0 || false |
105 | - favoriteEnabled: scopeView.scope && scopeView.scope.id !== "clickscope" |
106 | + favoriteEnabled: scopeView.scope |
107 | favorite: scopeView.scope && scopeView.scope.favorite |
108 | navigationTag: scopeView.scope ? scopeView.scope.primaryNavigationTag : "" |
109 | scopeStyle: scopeView.scopeStyle |
110 | |
111 | === modified file 'qml/Dash/ScopesListCategory.qml' |
112 | --- qml/Dash/ScopesListCategory.qml 2016-11-17 20:58:14 +0000 |
113 | +++ qml/Dash/ScopesListCategory.qml 2017-01-31 14:31:04 +0000 |
114 | @@ -89,7 +89,7 @@ |
115 | icon: model.art || model.mascot || "" |
116 | text: model.title || "" |
117 | subtext: model.subtitle || "" |
118 | - showStar: model.scopeId !== "clickscope" && (root.isFavoritesFeed || root.isAlsoInstalled) |
119 | + showStar: root.isFavoritesFeed || root.isAlsoInstalled |
120 | isFavorite: root.isFavoritesFeed |
121 | |
122 | hideChildren: dragItem.loaderToShrink == loader |
123 | |
124 | === modified file 'tests/autopilot/unity8/dash.py' |
125 | --- tests/autopilot/unity8/dash.py 2016-10-25 09:28:16 +0000 |
126 | +++ tests/autopilot/unity8/dash.py 2017-01-31 14:31:04 +0000 |
127 | @@ -48,23 +48,7 @@ |
128 | self.dash_content_list = self.wait_select_single( |
129 | 'QQuickListView', objectName='dashContentList') |
130 | |
131 | - def get_applications_grid(self): |
132 | - get_grid = self.get_scope('clickscope').wait_select_single( |
133 | - 'CardGrid', objectName='local') |
134 | - return get_grid |
135 | - |
136 | - def get_application_icon(self, text): |
137 | - """Returns a 'Tile' icon that has the text 'text' from the application |
138 | - grid. |
139 | - |
140 | - :param text: String containing the text of the icon to search for. |
141 | - |
142 | - """ |
143 | - app_grid = self.get_applications_grid() |
144 | - resp_grid = app_grid.wait_select_single('ResponsiveGridView') |
145 | - return resp_grid.select_single('Tile', text=text) |
146 | - |
147 | - def get_scope(self, scope_name='clickscope'): |
148 | + def get_scope(self, scope_name): |
149 | return self.dash_content_list.wait_select_single( |
150 | 'QQuickLoader', scopeId=scope_name) |
151 | |
152 | |
153 | === modified file 'tests/autopilot/unity8/shell/tests/test_helpers.py' |
154 | --- tests/autopilot/unity8/shell/tests/test_helpers.py 2016-10-25 09:11:13 +0000 |
155 | +++ tests/autopilot/unity8/shell/tests/test_helpers.py 2017-01-31 14:31:04 +0000 |
156 | @@ -99,12 +99,6 @@ |
157 | self._assert_scope_is_opened(scope, scope_id) |
158 | self.assertIsInstance(scope, dash_helpers.GenericScopeView) |
159 | |
160 | - def test_open_applications_scope(self): |
161 | - scope_id = 'clickscope' |
162 | - scope = self.dash.open_scope(scope_id) |
163 | - self._assert_scope_is_opened(scope, scope_id) |
164 | - self.assertIsInstance(scope, dash_helpers.GenericScopeView) |
165 | - |
166 | |
167 | class GenericScopeViewHelperTestCase(tests.DashBaseTestCase): |
168 | |
169 | @@ -122,46 +116,3 @@ |
170 | """Open an item that requires swiping to make it visible.""" |
171 | preview = self.generic_scope.open_preview('2', 'Title.2.0') |
172 | self.assertIsInstance(preview, dash_helpers.Preview) |
173 | - |
174 | - |
175 | -class DashAppsHelperTestCase(tests.DashBaseTestCase): |
176 | - |
177 | - available_applications = [ |
178 | - 'Title.2.0', 'Title.2.1', 'Title.2.2', 'Title.2.3', 'Title.2.4', |
179 | - 'Title.2.5', 'Title.2.6', 'Title.2.7', 'Title.2.8', 'Title.2.9', |
180 | - 'Title.2.10', 'Title.2.11', 'Title.2.12', 'Title.2.13', 'Title.2.14', |
181 | - 'Title.2.15', 'Title.2.16', 'Title.2.17', 'Title.2.18'] |
182 | - |
183 | - def setUp(self): |
184 | - # Set up the fake scopes before launching unity. |
185 | - self.useFixture(fixture_setup.FakeScopes()) |
186 | - super().setUp() |
187 | - self.applications_scope = self.dash.open_scope('clickscope') |
188 | - |
189 | - def test_get_applications_should_return_correct_applications(self): |
190 | - category = '2' |
191 | - category_element = self.applications_scope._get_category_element( |
192 | - category) |
193 | - list_view = self.dash.get_scope('clickscope')\ |
194 | - .select_single(dash_helpers.ListViewWithPageHeader) |
195 | - expected_apps_count = self._get_number_of_application_slots(category) |
196 | - expected_applications = self.available_applications[ |
197 | - :expected_apps_count] |
198 | - x_center = list_view.globalRect.x + list_view.width / 2 |
199 | - y_center = list_view.globalRect.y + list_view.height / 2 |
200 | - y_diff = ( |
201 | - category_element.y - list_view.height + category_element.height |
202 | - ) |
203 | - list_view._slow_drag(x_center, x_center, y_center, y_center - y_diff) |
204 | - applications = self.applications_scope.get_applications(category) |
205 | - self.assertEqual(expected_applications, applications) |
206 | - |
207 | - def _get_number_of_application_slots(self, category): |
208 | - category_element = self.applications_scope._get_category_element( |
209 | - category) |
210 | - cardgrid = category_element.select_single('CardGrid') |
211 | - if (category_element.expanded): |
212 | - return cardgrid.select_single('QQuickGridView').count |
213 | - else: |
214 | - return cardgrid.collapsedRows \ |
215 | - * cardgrid.select_single('ResponsiveGridView').columns |
216 | |
217 | === modified file 'tests/mocks/Unity/fake_scopes.cpp' |
218 | --- tests/mocks/Unity/fake_scopes.cpp 2017-01-10 14:46:38 +0000 |
219 | +++ tests/mocks/Unity/fake_scopes.cpp 2017-01-31 14:31:04 +0000 |
220 | @@ -60,7 +60,6 @@ |
221 | addScope(new Scope("MockScope7", "MS7", false, this)); |
222 | addScope(new Scope("MockScope8", "MS8", false, this)); |
223 | addScope(new Scope("MockScope9", "MS9", false, this)); |
224 | - addScope(new Scope("libertine-scope.ubuntu_libertine-scope", "Libertine", true, this)); |
225 | |
226 | Scope *longNavigationScope = new Scope( |
227 | "LongPrimaryNavigation", "LongPrimaryNavigation", true, this, 1, false, |
228 | |
229 | === modified file 'tests/qmltests/Dash/tst_Dash.qml' |
230 | --- tests/qmltests/Dash/tst_Dash.qml 2016-12-14 17:43:23 +0000 |
231 | +++ tests/qmltests/Dash/tst_Dash.qml 2017-01-31 14:31:04 +0000 |
232 | @@ -58,7 +58,7 @@ |
233 | tryCompare(dashContentList, "count", 0); |
234 | scopes.load(); |
235 | tryCompare(dashContentList, "currentIndex", 0); |
236 | - tryCompare(dashContentList, "count", 28); |
237 | + tryCompare(dashContentList, "count", 27); |
238 | tryCompare(scopes, "loaded", true); |
239 | tryCompareFunction(function() { |
240 | var mockScope1Loader = findChild(dash, "scopeLoader0"); |
241 | @@ -192,24 +192,6 @@ |
242 | tryCompare(expandingItem, "visible", false) |
243 | } |
244 | |
245 | - function test_manage_dash_clickscope_unfavoritable() { |
246 | - open_manage_dash(); |
247 | - |
248 | - // Click scope star area is not visible (i.e. can't be unfavorited) |
249 | - var favScopesListCategoryList = findChild(findChild(dash, "scopesListCategoryfavorites"), "scopesListCategoryInnerList"); |
250 | - var clickScope = findChild(favScopesListCategoryList, "delegateclickscope"); |
251 | - var starArea = findChild(clickScope, "starArea"); |
252 | - compare(starArea.visible, false); |
253 | - |
254 | - // Go back |
255 | - var bottomEdgeController = findInvisibleChild(dash, "bottomEdgeController"); |
256 | - var scopesList = findChild(dash, "scopesList"); |
257 | - var scopesListPageHeader = findChild(scopesList, "pageHeader"); |
258 | - var backButton = findChild(scopesListPageHeader, "innerPageHeader").leadingActionBar; |
259 | - mouseClick(backButton); |
260 | - tryCompare(bottomEdgeController, "progress", 0); |
261 | - } |
262 | - |
263 | function test_manage_dash_select_same_favorite() { |
264 | open_manage_dash(); |
265 | |
266 | @@ -627,35 +609,6 @@ |
267 | tryCompare(dashContent, "x", 0); |
268 | } |
269 | |
270 | - function test_cardIconStyle() |
271 | - { |
272 | - dash.setCurrentScope("clickscope"); |
273 | - var dashContent = findChild(dash, "dashContent"); |
274 | - tryCompare(dashContent.currentScope, "id", "clickscope"); |
275 | - |
276 | - scrollToCategory("dashCategorypredefined"); |
277 | - tryCompareFunction(function() { |
278 | - var tile = getCategoryDelegate("predefined", 2); |
279 | - var proportionalShape = findChildsByType(tile, "UCProportionalShape"); |
280 | - return proportionalShape.length === 1; |
281 | - }, |
282 | - true |
283 | - ); |
284 | - |
285 | - dash.setCurrentScope("libertine-scope.ubuntu_libertine-scope"); |
286 | - var dashContent = findChild(dash, "dashContent"); |
287 | - tryCompare(dashContent.currentScope, "id", "libertine-scope.ubuntu_libertine-scope"); |
288 | - |
289 | - scrollToCategory("dashCategory2"); |
290 | - tryCompareFunction(function() { |
291 | - var tile = getCategoryDelegate("2", 2); |
292 | - var proportionalShape = findChildsByType(tile, "UCProportionalShape"); |
293 | - return proportionalShape.length === 1; |
294 | - }, |
295 | - true |
296 | - ); |
297 | - } |
298 | - |
299 | function test_tempScopeItemXOnResize() |
300 | { |
301 | // Go to a temp scope |
302 | |
303 | === modified file 'tests/qmltests/Dash/tst_DashContent.qml' |
304 | --- tests/qmltests/Dash/tst_DashContent.qml 2016-12-02 00:56:24 +0000 |
305 | +++ tests/qmltests/Dash/tst_DashContent.qml 2017-01-31 14:31:04 +0000 |
306 | @@ -70,7 +70,7 @@ |
307 | function loadScopes() { |
308 | scopeLoadedSpy.clear(); |
309 | scopesModel.load(); |
310 | - tryCompare(scopeLoadedSpy, "count", 28, 15000); |
311 | + tryCompare(scopeLoadedSpy, "count", 27, 15000); |
312 | tryCompare(scopesModel, "loaded", true); |
313 | tryCompareFunction(function() { |
314 | var mockScope1Loader = findChild(shell, "scopeLoader0"); |
315 | @@ -120,11 +120,11 @@ |
316 | scopesModel.clear(); |
317 | compare(dashContentList.count, 0, "DashContent should have 0 items after clearing"); |
318 | // pretend we're running after a model reset |
319 | - dashContentList.currentIndex = 27; |
320 | + dashContentList.currentIndex = 26; |
321 | |
322 | loadScopes(); |
323 | |
324 | - compare(dashContentList.count, 28); |
325 | + compare(dashContentList.count, 27); |
326 | verify(dashContentList.currentIndex >= 0 && dashContentList.currentIndex < dashContentList.count); |
327 | } |
328 | |
329 | |
330 | === modified file 'tests/qmltests/Dash/tst_GenericScopeView.qml' |
331 | --- tests/qmltests/Dash/tst_GenericScopeView.qml 2016-12-06 20:16:56 +0000 |
332 | +++ tests/qmltests/Dash/tst_GenericScopeView.qml 2017-01-31 14:31:04 +0000 |
333 | @@ -84,6 +84,7 @@ |
334 | genericScopeView.scope = scopes.getScope(2); |
335 | genericScopeView.isCurrent = true; |
336 | shell.width = units.gu(120); |
337 | + shell.height = units.gu(100); |
338 | genericScopeView.categoryView.positionAtBeginning(); |
339 | waitForRendering(genericScopeView.categoryView); |
340 | } |
341 | @@ -195,6 +196,8 @@ |
342 | } |
343 | |
344 | function test_expand_collapse() { |
345 | + shell.height = units.gu(120); |
346 | + |
347 | tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0", 0 /* timeout */) != null; }, true); |
348 | |
349 | var category = findChild(genericScopeView, "dashCategory0") |
350 | @@ -531,6 +534,8 @@ |
351 | } |
352 | |
353 | function test_seeAllTwoCategoriesScenario2() { |
354 | + shell.height = units.gu(120); |
355 | + |
356 | mockScope.setId("mockScope"); |
357 | mockScope.setName("Mock Scope"); |
358 | mockScope.isActive = true; |
359 | @@ -587,7 +592,6 @@ |
360 | var innerHeader = findChild(header, "innerPageHeader"); |
361 | verify(innerHeader, "Could not find the inner header"); |
362 | |
363 | - expectFail("Apps", "Click scope should not have a favorite button"); |
364 | var favoriteAction = findChild(innerHeader, "favorite_button"); |
365 | verify(favoriteAction, "Could not find the favorite action."); |
366 | mouseClick(favoriteAction); |
367 | @@ -697,26 +701,6 @@ |
368 | var shape = findChildsByType(artShapeLoader, "UCUbuntuShape"); |
369 | compare(shape.borderSource, undefined); |
370 | } |
371 | - |
372 | - function test_clickScopeSizing() { |
373 | - genericScopeView.scope = scopes.getScopeFromAll("clickscope"); |
374 | - waitForRendering(genericScopeView); |
375 | - |
376 | - var categoryListView = findChild(genericScopeView, "categoryListView"); |
377 | - waitForRendering(categoryListView); |
378 | - |
379 | - var categorypredefined = findChild(categoryListView, "dashCategorypredefined"); |
380 | - waitForRendering(categorypredefined); |
381 | - |
382 | - var cardTool = findChild(categorypredefined, "cardTool"); |
383 | - |
384 | - compare(cardTool.cardWidth, units.gu(11)); |
385 | - shell.width = units.gu(46); |
386 | - waitForRendering(genericScopeView); |
387 | - compare(cardTool.cardWidth, units.gu(10)); |
388 | - |
389 | - shell.width = units.gu(120) |
390 | - } |
391 | } |
392 | } |
393 | } |
FAILED: Continuous integration, rev:2771 /unity8- jenkins. ubuntu. com/job/ lp-unity8- ci/3002/ /unity8- jenkins. ubuntu. com/job/ build/3907/ console /unity8- jenkins. ubuntu. com/job/ build-0- fetch/3935 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 3780 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 3780/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= zesty/3780 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= zesty/3780/ artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 3780 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 3780/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= zesty/3780/ console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 3780 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 3780/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= zesty/3780 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= zesty/3780/ artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild: /unity8- jenkins. ubuntu. com/job/ lp-unity8- ci/3002/ rebuild
https:/