Merge lp:~aacid/unity8/findChildInTryCompareFunction into lp:unity8
- findChildInTryCompareFunction
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Michał Sawicz |
Approved revision: | 2602 |
Merged at revision: | 2641 |
Proposed branch: | lp:~aacid/unity8/findChildInTryCompareFunction |
Merge into: | lp:unity8 |
Diff against target: |
379 lines (+28/-47) 10 files modified
tests/qmltests/Components/tst_Carousel.qml (+0/-1) tests/qmltests/Components/tst_Lockscreen.qml (+1/-2) tests/qmltests/Dash/Previews/tst_Preview.qml (+0/-2) tests/qmltests/Dash/Previews/tst_PreviewHeader.qml (+0/-4) tests/qmltests/Dash/tst_CardTool.qml (+4/-4) tests/qmltests/Dash/tst_Dash.qml (+8/-8) tests/qmltests/Dash/tst_DashContent.qml (+5/-7) tests/qmltests/Dash/tst_GenericScopeView.qml (+9/-15) tests/qmltests/Panel/tst_IndicatorPage.qml (+0/-2) tests/qmltests/tst_ShellWithPin.qml (+1/-2) |
To merge this branch: | bzr merge lp:~aacid/unity8/findChildInTryCompareFunction |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michał Sawicz | Approve | ||
Unity8 CI Bot | continuous-integration | Approve | |
Review via email:
|
Commit message
Improve findChild calls inside tryCompareFunction.
findChild has a timeout retry since a while ago. This means that if we have a findChild inside a tryCompareFunction the retries multiply and it takes around 30 minutes for the tryCompareFunction to fail if the findChild is failing, so what we do is set the timeout of findChild to 0.
In other cases we just had a tryCompareFunction that made sure the findChild after it would succeed, since now findChild has a retry mechanism we can just remove that tryCompareFunction altogether.
Description of the change
* Are there any related MPs required for this MP to build/function as expected?
No
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
* If you changed the UI, has there been a design review?
N/A
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
Preview Diff
1 | === modified file 'tests/qmltests/Components/tst_Carousel.qml' | |||
2 | --- tests/qmltests/Components/tst_Carousel.qml 2015-07-15 15:07:19 +0000 | |||
3 | +++ tests/qmltests/Components/tst_Carousel.qml 2016-08-30 09:46:12 +0000 | |||
4 | @@ -268,7 +268,6 @@ | |||
5 | 268 | 268 | ||
6 | 269 | function test_activate() { | 269 | function test_activate() { |
7 | 270 | var carouselList = findChild(carousel, "listView"); | 270 | var carouselList = findChild(carousel, "listView"); |
8 | 271 | tryCompareFunction(function() { return findChild(carouselList, "carouselDelegate3") ? true : false; }, true); | ||
9 | 272 | var carouselItem = findChild(carousel, "carouselDelegate3") | 271 | var carouselItem = findChild(carousel, "carouselDelegate3") |
10 | 273 | verify(carouselItem, "Could not find delegate"); | 272 | verify(carouselItem, "Could not find delegate"); |
11 | 274 | 273 | ||
12 | 275 | 274 | ||
13 | === modified file 'tests/qmltests/Components/tst_Lockscreen.qml' | |||
14 | --- tests/qmltests/Components/tst_Lockscreen.qml 2016-05-26 20:59:30 +0000 | |||
15 | +++ tests/qmltests/Components/tst_Lockscreen.qml 2016-08-30 09:46:12 +0000 | |||
16 | @@ -422,7 +422,6 @@ | |||
17 | 422 | function test_infoPopup() { | 422 | function test_infoPopup() { |
18 | 423 | verify(findChild(root, "infoPopup") === null); | 423 | verify(findChild(root, "infoPopup") === null); |
19 | 424 | lockscreen.showInfoPopup("foo", "bar"); | 424 | lockscreen.showInfoPopup("foo", "bar"); |
20 | 425 | tryCompareFunction(function() { return findChild(root, "infoPopup") !== null}, true); | ||
21 | 426 | 425 | ||
22 | 427 | var infoPopup = findChild(root, "infoPopup"); | 426 | var infoPopup = findChild(root, "infoPopup"); |
23 | 428 | compare(infoPopup.title, "foo"); | 427 | compare(infoPopup.title, "foo"); |
24 | @@ -434,7 +433,7 @@ | |||
25 | 434 | var okButton = findChild(root, "infoPopupOkButton"); | 433 | var okButton = findChild(root, "infoPopupOkButton"); |
26 | 435 | mouseClick(okButton); | 434 | mouseClick(okButton); |
27 | 436 | 435 | ||
29 | 437 | tryCompareFunction(function() { return findChild(root, "infoPopup") === null}, true); | 436 | tryCompareFunction(function() { return findChild(root, "infoPopup", 0 /* timeout */) === null}, true); |
30 | 438 | 437 | ||
31 | 439 | tryCompare(signalSpy, "count", 1); | 438 | tryCompare(signalSpy, "count", 1); |
32 | 440 | } | 439 | } |
33 | 441 | 440 | ||
34 | === modified file 'tests/qmltests/Dash/Previews/tst_Preview.qml' | |||
35 | --- tests/qmltests/Dash/Previews/tst_Preview.qml 2016-05-02 08:15:14 +0000 | |||
36 | +++ tests/qmltests/Dash/Previews/tst_Preview.qml 2016-08-30 09:46:12 +0000 | |||
37 | @@ -78,7 +78,6 @@ | |||
38 | 78 | 78 | ||
39 | 79 | function test_containOnFocus() { | 79 | function test_containOnFocus() { |
40 | 80 | waitForRendering(preview); | 80 | waitForRendering(preview); |
41 | 81 | tryCompareFunction(function () { return findChild(preview, "widget-10") != null }, true); | ||
42 | 82 | var widget = findChild(preview, "widget-10"); | 81 | var widget = findChild(preview, "widget-10"); |
43 | 83 | 82 | ||
44 | 84 | var bottomLeft = preview.mapFromItem(widget, 0, widget.height); | 83 | var bottomLeft = preview.mapFromItem(widget, 0, widget.height); |
45 | @@ -94,7 +93,6 @@ | |||
46 | 94 | 93 | ||
47 | 95 | function test_containOnGrow() { | 94 | function test_containOnGrow() { |
48 | 96 | waitForRendering(preview); | 95 | waitForRendering(preview); |
49 | 97 | tryCompareFunction(function () { return findChild(preview, "widget-13") != null }, true); | ||
50 | 98 | var widget = findChild(preview, "widget-13"); | 96 | var widget = findChild(preview, "widget-13"); |
51 | 99 | 97 | ||
52 | 100 | var bottomLeft = preview.mapFromItem(widget, 0, widget.height); | 98 | var bottomLeft = preview.mapFromItem(widget, 0, widget.height); |
53 | 101 | 99 | ||
54 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewHeader.qml' | |||
55 | --- tests/qmltests/Dash/Previews/tst_PreviewHeader.qml 2016-03-10 22:39:24 +0000 | |||
56 | +++ tests/qmltests/Dash/Previews/tst_PreviewHeader.qml 2016-08-30 09:46:12 +0000 | |||
57 | @@ -116,7 +116,6 @@ | |||
58 | 116 | 116 | ||
59 | 117 | tryCompare(testCase.mascotShapeLoader, "visible", data.loaderVisible); | 117 | tryCompare(testCase.mascotShapeLoader, "visible", data.loaderVisible); |
60 | 118 | if (data.loaderVisible) { | 118 | if (data.loaderVisible) { |
61 | 119 | tryCompareFunction(function() { return findChild(previewHeader, "mascotShape") != null }, true); | ||
62 | 120 | var mascot = findChild(previewHeader, "mascotShape") | 119 | var mascot = findChild(previewHeader, "mascotShape") |
63 | 121 | tryCompare(mascot, "visible", data.visible); | 120 | tryCompare(mascot, "visible", data.visible); |
64 | 122 | } | 121 | } |
65 | @@ -165,20 +164,17 @@ | |||
66 | 165 | 164 | ||
67 | 166 | function test_fallback() { | 165 | function test_fallback() { |
68 | 167 | previewHeader.widgetData = brokenheaderjson; | 166 | previewHeader.widgetData = brokenheaderjson; |
69 | 168 | tryCompareFunction(function() { return findChild(previewHeader, "mascotShape") != null }, true); | ||
70 | 169 | var mascot = findChild(previewHeader, "mascotShape"); | 167 | var mascot = findChild(previewHeader, "mascotShape"); |
71 | 170 | compare(mascot.visible, false); | 168 | compare(mascot.visible, false); |
72 | 171 | 169 | ||
73 | 172 | previewHeader.widgetData = {}; | 170 | previewHeader.widgetData = {}; |
74 | 173 | previewHeader.widgetData = fallbackheaderjson; | 171 | previewHeader.widgetData = fallbackheaderjson; |
75 | 174 | tryCompareFunction(function() { return findChild(previewHeader, "mascotShape") != null }, true); | ||
76 | 175 | var mascot = findChild(previewHeader, "mascotShape"); | 172 | var mascot = findChild(previewHeader, "mascotShape"); |
77 | 176 | tryCompare(mascot, "visible", true); | 173 | tryCompare(mascot, "visible", true); |
78 | 177 | tryCompare(mascot.source, "status", Image.Ready); | 174 | tryCompare(mascot.source, "status", Image.Ready); |
79 | 178 | 175 | ||
80 | 179 | previewHeader.widgetData = {}; | 176 | previewHeader.widgetData = {}; |
81 | 180 | previewHeader.widgetData = emptyfallbackheaderjson; | 177 | previewHeader.widgetData = emptyfallbackheaderjson; |
82 | 181 | tryCompareFunction(function() { return findChild(previewHeader, "mascotShape") != null }, true); | ||
83 | 182 | var mascot = findChild(previewHeader, "mascotShape"); | 178 | var mascot = findChild(previewHeader, "mascotShape"); |
84 | 183 | tryCompare(mascot, "visible", true); | 179 | tryCompare(mascot, "visible", true); |
85 | 184 | tryCompare(mascot.source, "status", Image.Ready); | 180 | tryCompare(mascot.source, "status", Image.Ready); |
86 | 185 | 181 | ||
87 | === modified file 'tests/qmltests/Dash/tst_CardTool.qml' | |||
88 | --- tests/qmltests/Dash/tst_CardTool.qml 2016-05-26 14:40:48 +0000 | |||
89 | +++ tests/qmltests/Dash/tst_CardTool.qml 2016-08-30 09:46:12 +0000 | |||
90 | @@ -339,22 +339,22 @@ | |||
91 | 339 | function test_card_title_alignment(data) { | 339 | function test_card_title_alignment(data) { |
92 | 340 | selector.selectedIndex = data.index; | 340 | selector.selectedIndex = data.index; |
93 | 341 | 341 | ||
95 | 342 | tryCompareFunction(function() { return findChild(internalCard, "titleLabel").horizontalAlignment == Text.AlignLeft; }, true); | 342 | tryCompareFunction(function() { return findChild(internalCard, "titleLabel", 0 /* timeout */).horizontalAlignment == Text.AlignLeft; }, true); |
96 | 343 | 343 | ||
97 | 344 | cardTool.components['title'] = { "field": "title", "align": "center" }; | 344 | cardTool.components['title'] = { "field": "title", "align": "center" }; |
98 | 345 | cardTool.componentsChanged(); | 345 | cardTool.componentsChanged(); |
99 | 346 | 346 | ||
101 | 347 | tryCompareFunction(function() { return findChild(internalCard, "titleLabel").horizontalAlignment == data.value; }, true); | 347 | tryCompareFunction(function() { return findChild(internalCard, "titleLabel", 0 /* timeout */).horizontalAlignment == data.value; }, true); |
102 | 348 | 348 | ||
103 | 349 | cardTool.components['title'] = { "field": "title" }; | 349 | cardTool.components['title'] = { "field": "title" }; |
104 | 350 | cardTool.componentsChanged(); | 350 | cardTool.componentsChanged(); |
105 | 351 | 351 | ||
107 | 352 | tryCompareFunction(function() { return findChild(internalCard, "titleLabel").horizontalAlignment == data.value; }, true); | 352 | tryCompareFunction(function() { return findChild(internalCard, "titleLabel", 0 /* timeout */).horizontalAlignment == data.value; }, true); |
108 | 353 | 353 | ||
109 | 354 | cardTool.components['title'] = { "field": "title", "align": "left" }; | 354 | cardTool.components['title'] = { "field": "title", "align": "left" }; |
110 | 355 | cardTool.componentsChanged(); | 355 | cardTool.componentsChanged(); |
111 | 356 | 356 | ||
113 | 357 | tryCompareFunction(function() { return findChild(internalCard, "titleLabel").horizontalAlignment == Text.AlignLeft; }, true); | 357 | tryCompareFunction(function() { return findChild(internalCard, "titleLabel", 0 /* timeout */).horizontalAlignment == Text.AlignLeft; }, true); |
114 | 358 | } | 358 | } |
115 | 359 | 359 | ||
116 | 360 | function test_categoryLayout_data() { | 360 | function test_categoryLayout_data() { |
117 | 361 | 361 | ||
118 | === modified file 'tests/qmltests/Dash/tst_Dash.qml' | |||
119 | --- tests/qmltests/Dash/tst_Dash.qml 2016-06-21 08:14:56 +0000 | |||
120 | +++ tests/qmltests/Dash/tst_Dash.qml 2016-08-30 09:46:12 +0000 | |||
121 | @@ -76,7 +76,7 @@ | |||
122 | 76 | var genericScopeView = dashContentList.currentItem; | 76 | var genericScopeView = dashContentList.currentItem; |
123 | 77 | var categoryListView = findChild(genericScopeView, "categoryListView"); | 77 | var categoryListView = findChild(genericScopeView, "categoryListView"); |
124 | 78 | tryCompareFunction(function() { | 78 | tryCompareFunction(function() { |
126 | 79 | var category = findChild(genericScopeView, categoryName); | 79 | var category = findChild(genericScopeView, categoryName, 0 /* timeout */); |
127 | 80 | if (category && category.y > 0 && category.y < genericScopeView.height) return true; | 80 | if (category && category.y > 0 && category.y < genericScopeView.height) return true; |
128 | 81 | touchFlick(genericScopeView, genericScopeView.width/2, units.gu(20), | 81 | touchFlick(genericScopeView, genericScopeView.width/2, units.gu(20), |
129 | 82 | genericScopeView.width/2, genericScopeView.y) | 82 | genericScopeView.width/2, genericScopeView.y) |
130 | @@ -84,7 +84,7 @@ | |||
131 | 84 | return false; | 84 | return false; |
132 | 85 | }, true); | 85 | }, true); |
133 | 86 | 86 | ||
135 | 87 | tryCompareFunction(function() { return findChild(genericScopeView, "delegate0") !== null; }, true); | 87 | tryCompareFunction(function() { return findChild(genericScopeView, "delegate0", 0 /* timeout */) !== null; }, true); |
136 | 88 | return findChild(genericScopeView, categoryName); | 88 | return findChild(genericScopeView, categoryName); |
137 | 89 | } | 89 | } |
138 | 90 | 90 | ||
139 | @@ -94,9 +94,9 @@ | |||
140 | 94 | if (category === undefined) category = 0; | 94 | if (category === undefined) category = 0; |
141 | 95 | if (delegate === undefined) delegate = 0; | 95 | if (delegate === undefined) delegate = 0; |
142 | 96 | tryCompareFunction(function() { | 96 | tryCompareFunction(function() { |
144 | 97 | var cardGrid = findChild(genericScopeView, "dashCategory"+category); | 97 | var cardGrid = findChild(genericScopeView, "dashCategory"+category, 0 /* timeout */); |
145 | 98 | if (cardGrid != null) { | 98 | if (cardGrid != null) { |
147 | 99 | var tile = findChild(cardGrid, "delegate"+delegate); | 99 | var tile = findChild(cardGrid, "delegate"+delegate, 0 /* timeout */); |
148 | 100 | return tile != null; | 100 | return tile != null; |
149 | 101 | } | 101 | } |
150 | 102 | return false; | 102 | return false; |
151 | @@ -473,9 +473,9 @@ | |||
152 | 473 | compare(dashContentList.currentItem.scopeId, "MockScope1"); | 473 | compare(dashContentList.currentItem.scopeId, "MockScope1"); |
153 | 474 | 474 | ||
154 | 475 | tryCompareFunction(function() { | 475 | tryCompareFunction(function() { |
156 | 476 | var cardGrid = findChild(dashContentList, "dashCategory0"); | 476 | var cardGrid = findChild(dashContentList, "dashCategory0", 0 /* timeout */); |
157 | 477 | if (cardGrid != null) { | 477 | if (cardGrid != null) { |
159 | 478 | var tile = findChild(cardGrid, "delegate0"); | 478 | var tile = findChild(cardGrid, "delegate0", 0 /* timeout */); |
160 | 479 | return tile != null; | 479 | return tile != null; |
161 | 480 | } | 480 | } |
162 | 481 | return false; | 481 | return false; |
163 | @@ -520,9 +520,9 @@ | |||
164 | 520 | var categoryListView = findChild(dashTempScopeItem, "categoryListView"); | 520 | var categoryListView = findChild(dashTempScopeItem, "categoryListView"); |
165 | 521 | categoryListView.positionAtBeginning(); | 521 | categoryListView.positionAtBeginning(); |
166 | 522 | tryCompareFunction(function() { | 522 | tryCompareFunction(function() { |
168 | 523 | var cardGrid = findChild(dashTempScopeItem, "dashCategory0"); | 523 | var cardGrid = findChild(dashTempScopeItem, "dashCategory0", 0 /* timeout */); |
169 | 524 | if (cardGrid != null) { | 524 | if (cardGrid != null) { |
171 | 525 | var tile = findChild(cardGrid, "delegate0"); | 525 | var tile = findChild(cardGrid, "delegate0", 0 /* timeout */); |
172 | 526 | return tile != null; | 526 | return tile != null; |
173 | 527 | } | 527 | } |
174 | 528 | return false; | 528 | return false; |
175 | 529 | 529 | ||
176 | === modified file 'tests/qmltests/Dash/tst_DashContent.qml' | |||
177 | --- tests/qmltests/Dash/tst_DashContent.qml 2016-08-03 15:51:32 +0000 | |||
178 | +++ tests/qmltests/Dash/tst_DashContent.qml 2016-08-30 09:46:12 +0000 | |||
179 | @@ -261,11 +261,11 @@ | |||
180 | 261 | 261 | ||
181 | 262 | function test_carouselAspectRatio() { | 262 | function test_carouselAspectRatio() { |
182 | 263 | tryCompareFunction(function() { | 263 | tryCompareFunction(function() { |
184 | 264 | var scope = findChild(dashContent, "scopeLoader0"); | 264 | var scope = findChild(dashContent, "scopeLoader0", 0 /* timeout */); |
185 | 265 | if (scope != null) { | 265 | if (scope != null) { |
187 | 266 | var dashCategory1 = findChild(scope, "dashCategory1"); | 266 | var dashCategory1 = findChild(scope, "dashCategory1", 0 /* timeout */); |
188 | 267 | if (dashCategory1 != null) { | 267 | if (dashCategory1 != null) { |
190 | 268 | var tile = findChild(dashCategory1, "carouselDelegate1"); | 268 | var tile = findChild(dashCategory1, "carouselDelegate1", 0 /* timeout */); |
191 | 269 | return tile != null; | 269 | return tile != null; |
192 | 270 | } | 270 | } |
193 | 271 | } | 271 | } |
194 | @@ -282,7 +282,6 @@ | |||
195 | 282 | 282 | ||
196 | 283 | function test_mainNavigation() { | 283 | function test_mainNavigation() { |
197 | 284 | var dashContentList = findChild(dashContent, "dashContentList"); | 284 | var dashContentList = findChild(dashContent, "dashContentList"); |
198 | 285 | tryCompareFunction(function() { return findChild(dashContentList.currentItem, "dashNavigation") != null; }, true); | ||
199 | 286 | var dashNavigation = findChild(dashContentList.currentItem, "dashNavigation"); | 285 | var dashNavigation = findChild(dashContentList.currentItem, "dashNavigation"); |
200 | 287 | var peExtraPanel = findChild(dashContentList.currentItem, "peExtraPanel"); | 286 | var peExtraPanel = findChild(dashContentList.currentItem, "peExtraPanel"); |
201 | 288 | var searchButton = findChild(dashContentList.currentItem, "search_button"); | 287 | var searchButton = findChild(dashContentList.currentItem, "search_button"); |
202 | @@ -405,7 +404,6 @@ | |||
203 | 405 | 404 | ||
204 | 406 | function goToSecondLevel() { | 405 | function goToSecondLevel() { |
205 | 407 | var dashContentList = findChild(dashContent, "dashContentList"); | 406 | var dashContentList = findChild(dashContent, "dashContentList"); |
206 | 408 | tryCompareFunction(function() { return findChild(dashContentList.currentItem, "dashNavigation") != null; }, true); | ||
207 | 409 | var dashNavigation = findChild(dashContentList.currentItem, "dashNavigation"); | 407 | var dashNavigation = findChild(dashContentList.currentItem, "dashNavigation"); |
208 | 410 | var peExtraPanel = findChild(dashContentList.currentItem, "peExtraPanel"); | 408 | var peExtraPanel = findChild(dashContentList.currentItem, "peExtraPanel"); |
209 | 411 | var searchButton = findChild(dashContentList.currentItem, "search_button"); | 409 | var searchButton = findChild(dashContentList.currentItem, "search_button"); |
210 | @@ -580,7 +578,7 @@ | |||
211 | 580 | 578 | ||
212 | 581 | function test_primaryFilter() { | 579 | function test_primaryFilter() { |
213 | 582 | var dashContentList = findChild(dashContent, "dashContentList"); | 580 | var dashContentList = findChild(dashContent, "dashContentList"); |
215 | 583 | tryCompareFunction(function() { return findChild(dashContentList.currentItem, "dashNavigation") != null; }, true); | 581 | tryCompareFunction(function() { return findChild(dashContentList.currentItem, "dashNavigation", 0 /* timeout */) != null; }, true); |
216 | 584 | dashContentList.currentItem.item.scope.setHasNavigation(false); | 582 | dashContentList.currentItem.item.scope.setHasNavigation(false); |
217 | 585 | var peExtraPanel = findChild(dashContentList.currentItem, "peExtraPanel"); | 583 | var peExtraPanel = findChild(dashContentList.currentItem, "peExtraPanel"); |
218 | 586 | var searchButton = findChild(dashContentList.currentItem, "search_button"); | 584 | var searchButton = findChild(dashContentList.currentItem, "search_button"); |
219 | @@ -589,7 +587,7 @@ | |||
220 | 589 | mouseClick(searchButton); | 587 | mouseClick(searchButton); |
221 | 590 | tryCompare(peExtraPanel, "visible", true); | 588 | tryCompare(peExtraPanel, "visible", true); |
222 | 591 | 589 | ||
224 | 592 | tryCompareFunction(function() { return findChild(peExtraPanel, "OSF3") != null; }, true); | 590 | tryCompareFunction(function() { return findChild(peExtraPanel, "OSF3", 0 /* timeout */) != null; }, true); |
225 | 593 | } | 591 | } |
226 | 594 | 592 | ||
227 | 595 | function test_searchHint() { | 593 | function test_searchHint() { |
228 | 596 | 594 | ||
229 | === modified file 'tests/qmltests/Dash/tst_GenericScopeView.qml' | |||
230 | --- tests/qmltests/Dash/tst_GenericScopeView.qml 2016-06-29 14:45:18 +0000 | |||
231 | +++ tests/qmltests/Dash/tst_GenericScopeView.qml 2016-08-30 09:46:12 +0000 | |||
232 | @@ -92,7 +92,7 @@ | |||
233 | 92 | function scrollToCategory(categoryName) { | 92 | function scrollToCategory(categoryName) { |
234 | 93 | var categoryListView = findChild(genericScopeView, "categoryListView"); | 93 | var categoryListView = findChild(genericScopeView, "categoryListView"); |
235 | 94 | tryCompareFunction(function() { | 94 | tryCompareFunction(function() { |
237 | 95 | var category = findChild(genericScopeView, categoryName); | 95 | var category = findChild(genericScopeView, categoryName, 0 /* timeout */); |
238 | 96 | if (category && category.y > 0 && category.y < genericScopeView.height) return true; | 96 | if (category && category.y > 0 && category.y < genericScopeView.height) return true; |
239 | 97 | touchFlick(genericScopeView, genericScopeView.width/2, units.gu(20), | 97 | touchFlick(genericScopeView, genericScopeView.width/2, units.gu(20), |
240 | 98 | genericScopeView.width/2, genericScopeView.y) | 98 | genericScopeView.width/2, genericScopeView.y) |
241 | @@ -100,7 +100,7 @@ | |||
242 | 100 | return false; | 100 | return false; |
243 | 101 | }, true); | 101 | }, true); |
244 | 102 | 102 | ||
246 | 103 | tryCompareFunction(function() { return findChild(genericScopeView, "delegate0") !== null; }, true); | 103 | tryCompareFunction(function() { return findChild(genericScopeView, "delegate0", 0 /* timeout */) !== null; }, true); |
247 | 104 | return findChild(genericScopeView, categoryName); | 104 | return findChild(genericScopeView, categoryName); |
248 | 105 | } | 105 | } |
249 | 106 | 106 | ||
250 | @@ -163,7 +163,7 @@ | |||
251 | 163 | } | 163 | } |
252 | 164 | 164 | ||
253 | 165 | function test_expand_collapse() { | 165 | function test_expand_collapse() { |
255 | 166 | tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0") != null; }, true); | 166 | tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0", 0 /* timeout */) != null; }, true); |
256 | 167 | 167 | ||
257 | 168 | var category = findChild(genericScopeView, "dashCategory0") | 168 | var category = findChild(genericScopeView, "dashCategory0") |
258 | 169 | var seeAll = findChild(category, "seeAll") | 169 | var seeAll = findChild(category, "seeAll") |
259 | @@ -184,7 +184,7 @@ | |||
260 | 184 | 184 | ||
261 | 185 | function test_expand_expand_collapse() { | 185 | function test_expand_expand_collapse() { |
262 | 186 | // wait for the item to be there | 186 | // wait for the item to be there |
264 | 187 | tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader2") != null; }, true); | 187 | tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader2", 0 /* timeout */) != null; }, true); |
265 | 188 | 188 | ||
266 | 189 | var categoryListView = findChild(genericScopeView, "categoryListView"); | 189 | var categoryListView = findChild(genericScopeView, "categoryListView"); |
267 | 190 | categoryListView.contentY = categoryListView.height; | 190 | categoryListView.contentY = categoryListView.height; |
268 | @@ -212,7 +212,6 @@ | |||
269 | 212 | } | 212 | } |
270 | 213 | 213 | ||
271 | 214 | function test_headerLink() { | 214 | function test_headerLink() { |
272 | 215 | tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader1") != null; }, true); | ||
273 | 216 | var header = findChild(genericScopeView, "dashSectionHeader1"); | 215 | var header = findChild(genericScopeView, "dashSectionHeader1"); |
274 | 217 | 216 | ||
275 | 218 | spy.target = genericScopeView.scope; | 217 | spy.target = genericScopeView.scope; |
276 | @@ -231,7 +230,7 @@ | |||
277 | 231 | categoryListView.contentY = categoryListView.height * 2; | 230 | categoryListView.contentY = categoryListView.height * 2; |
278 | 232 | 231 | ||
279 | 233 | // wait for the item to be there | 232 | // wait for the item to be there |
281 | 234 | tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader4") != null; }, true); | 233 | tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader4", 0 /* timeout */) != null; }, true); |
282 | 235 | 234 | ||
283 | 236 | var categoryView = findChild(genericScopeView, "dashCategory4"); | 235 | var categoryView = findChild(genericScopeView, "dashCategory4"); |
284 | 237 | verify(categoryView, "Can't find the category view."); | 236 | verify(categoryView, "Can't find the category view."); |
285 | @@ -243,7 +242,6 @@ | |||
286 | 243 | } | 242 | } |
287 | 244 | 243 | ||
288 | 245 | function test_narrow_delegate_ranges_expand() { | 244 | function test_narrow_delegate_ranges_expand() { |
289 | 246 | tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory0") !== null; }, true); | ||
290 | 247 | var category = findChild(genericScopeView, "dashCategory0") | 245 | var category = findChild(genericScopeView, "dashCategory0") |
291 | 248 | tryCompare(category, "expanded", false); | 246 | tryCompare(category, "expanded", false); |
292 | 249 | 247 | ||
293 | @@ -275,7 +273,6 @@ | |||
294 | 275 | function test_single_category_expansion() { | 273 | function test_single_category_expansion() { |
295 | 276 | genericScopeView.scope = scopes.getScope(3); | 274 | genericScopeView.scope = scopes.getScope(3); |
296 | 277 | 275 | ||
297 | 278 | tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory0") != undefined; }, true); | ||
298 | 279 | var category = findChild(genericScopeView, "dashCategory0") | 276 | var category = findChild(genericScopeView, "dashCategory0") |
299 | 280 | compare(category.expandable, false, "Only category should not be expandable."); | 277 | compare(category.expandable, false, "Only category should not be expandable."); |
300 | 281 | 278 | ||
301 | @@ -289,9 +286,9 @@ | |||
302 | 289 | if (category === undefined) category = 0; | 286 | if (category === undefined) category = 0; |
303 | 290 | if (delegate === undefined) delegate = 0; | 287 | if (delegate === undefined) delegate = 0; |
304 | 291 | tryCompareFunction(function() { | 288 | tryCompareFunction(function() { |
306 | 292 | var cardGrid = findChild(genericScopeView, "dashCategory"+category); | 289 | var cardGrid = findChild(genericScopeView, "dashCategory"+category, 0 /* timeout */); |
307 | 293 | if (cardGrid != null) { | 290 | if (cardGrid != null) { |
309 | 294 | var tile = findChild(cardGrid, "delegate"+delegate); | 291 | var tile = findChild(cardGrid, "delegate"+delegate, 0 /* timeout */); |
310 | 295 | return tile != null; | 292 | return tile != null; |
311 | 296 | } | 293 | } |
312 | 297 | return false; | 294 | return false; |
313 | @@ -332,9 +329,9 @@ | |||
314 | 332 | genericScopeView.scope = scopes.getScope("NullPreviewScope"); | 329 | genericScopeView.scope = scopes.getScope("NullPreviewScope"); |
315 | 333 | 330 | ||
316 | 334 | tryCompareFunction(function() { | 331 | tryCompareFunction(function() { |
318 | 335 | var cardGrid = findChild(genericScopeView, 0); | 332 | var cardGrid = findChild(genericScopeView, 0, 0 /* timeout */); |
319 | 336 | if (cardGrid != null) { | 333 | if (cardGrid != null) { |
321 | 337 | var tile = findChild(cardGrid, 0); | 334 | var tile = findChild(cardGrid, 0, 0 /* timeout */); |
322 | 338 | return tile != null; | 335 | return tile != null; |
323 | 339 | } | 336 | } |
324 | 340 | return false; | 337 | return false; |
325 | @@ -385,7 +382,6 @@ | |||
326 | 385 | 382 | ||
327 | 386 | tryCompare(testCase.subPageLoader, "open", false); | 383 | tryCompare(testCase.subPageLoader, "open", false); |
328 | 387 | 384 | ||
329 | 388 | tryCompareFunction(function() { return findChild(category, "delegate1") != null; }, true); | ||
330 | 389 | var tile = findChild(category, "delegate1"); | 385 | var tile = findChild(category, "delegate1"); |
331 | 390 | 386 | ||
332 | 391 | mouseClick(tile); | 387 | mouseClick(tile); |
333 | @@ -487,7 +483,6 @@ | |||
334 | 487 | 483 | ||
335 | 488 | scrollToEnd(); | 484 | scrollToEnd(); |
336 | 489 | 485 | ||
337 | 490 | tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory1") !== null; }, true); | ||
338 | 491 | var category1 = findChild(genericScopeView, "dashCategory1") | 486 | var category1 = findChild(genericScopeView, "dashCategory1") |
339 | 492 | var seeAll1 = findChild(category1, "seeAll") | 487 | var seeAll1 = findChild(category1, "seeAll") |
340 | 493 | verify(category1.expandable); | 488 | verify(category1.expandable); |
341 | @@ -669,7 +664,6 @@ | |||
342 | 669 | function test_carousel_borderSource() { | 664 | function test_carousel_borderSource() { |
343 | 670 | var category = scrollToCategory("dashCategory1"); | 665 | var category = scrollToCategory("dashCategory1"); |
344 | 671 | var tile = findChild(category, "carouselDelegate0"); | 666 | var tile = findChild(category, "carouselDelegate0"); |
345 | 672 | tryCompareFunction(function() { return findChild(tile, "artShapeLoader") !== null; }, true); | ||
346 | 673 | var artShapeLoader = findChild(tile, "artShapeLoader"); | 667 | var artShapeLoader = findChild(tile, "artShapeLoader"); |
347 | 674 | var shape = findChildsByType(artShapeLoader, "UCUbuntuShape"); | 668 | var shape = findChildsByType(artShapeLoader, "UCUbuntuShape"); |
348 | 675 | compare(shape.borderSource, undefined); | 669 | compare(shape.borderSource, undefined); |
349 | 676 | 670 | ||
350 | === modified file 'tests/qmltests/Panel/tst_IndicatorPage.qml' | |||
351 | --- tests/qmltests/Panel/tst_IndicatorPage.qml 2015-07-15 15:07:19 +0000 | |||
352 | +++ tests/qmltests/Panel/tst_IndicatorPage.qml 2016-08-30 09:46:12 +0000 | |||
353 | @@ -177,8 +177,6 @@ | |||
354 | 177 | initializeMenuData(fullMenuData); | 177 | initializeMenuData(fullMenuData); |
355 | 178 | 178 | ||
356 | 179 | var menuId = "menu"+data.remove | 179 | var menuId = "menu"+data.remove |
357 | 180 | |||
358 | 181 | tryCompareFunction(function() { return findChild(page, menuId) !== null;}, true); | ||
359 | 182 | var menu = findChild(page, menuId); | 180 | var menu = findChild(page, menuId); |
360 | 183 | 181 | ||
361 | 184 | menu.menuSelected(); | 182 | menu.menuSelected(); |
362 | 185 | 183 | ||
363 | === modified file 'tests/qmltests/tst_ShellWithPin.qml' | |||
364 | --- tests/qmltests/tst_ShellWithPin.qml 2016-07-07 19:52:57 +0000 | |||
365 | +++ tests/qmltests/tst_ShellWithPin.qml 2016-08-30 09:46:12 +0000 | |||
366 | @@ -363,12 +363,11 @@ | |||
367 | 363 | 363 | ||
368 | 364 | enterPin("1111") | 364 | enterPin("1111") |
369 | 365 | enterPin("1111") | 365 | enterPin("1111") |
370 | 366 | tryCompareFunction(function() {return findChild(root, "infoPopup") !== null}, true) | ||
371 | 367 | 366 | ||
372 | 368 | var dialog = findChild(root, "infoPopup") | 367 | var dialog = findChild(root, "infoPopup") |
373 | 369 | var button = findChild(dialog, "infoPopupOkButton") | 368 | var button = findChild(dialog, "infoPopupOkButton") |
374 | 370 | tap(button) | 369 | tap(button) |
376 | 371 | tryCompareFunction(function() {return findChild(root, "infoPopup")}, null) | 370 | tryCompareFunction(function() {return findChild(root, "infoPopup", 0 /* timeout */)}, null) |
377 | 372 | 371 | ||
378 | 373 | tryCompare(resetSpy, "count", 0) | 372 | tryCompare(resetSpy, "count", 0) |
379 | 374 | enterPin("1111") | 373 | enterPin("1111") |
PASSED: Continuous integration, rev:2602 /unity8- jenkins. ubuntu. com/job/ lp-unity8- ci/2058/ /unity8- jenkins. ubuntu. com/job/ build/2704 /unity8- jenkins. ubuntu. com/job/ test-0- autopkgtest/ label=amd64, release= vivid+overlay, testname= qmluitests. sh/1488 /unity8- jenkins. ubuntu. com/job/ test-0- autopkgtest/ label=amd64, release= xenial+ overlay, testname= qmluitests. sh/1488 /unity8- jenkins. ubuntu. com/job/ test-0- autopkgtest/ label=amd64, release= yakkety, testname= qmluitests. sh/1488 /unity8- jenkins. ubuntu. com/job/ build-0- fetch/2732 /unity8- jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= vivid+overlay/ 2605 /unity8- jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= xenial+ overlay/ 2605 /unity8- jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= yakkety/ 2605 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= vivid+overlay/ 2598 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= vivid+overlay/ 2598/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 2598 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 2598/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= yakkety/ 2598 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= yakkety/ 2598/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= vivid+overlay/ 2598 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= vivid+overlay/ 2598/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 2598 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 2598/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= yakkety/ 2598 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= yakkety/ 2598/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= vivid+overlay/ 2598 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= vivid+overlay/ 2598/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 2598 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 2598/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= yakkety/ 2598 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= yakkety/ 2598/artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
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:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild: /unity8- jenkins. ubuntu. com/job/ lp-unity8- ci/2058/ rebuild
https:/