Merge lp:~timo-jyrinki/ubuntu-ui-toolkit/drop_deprecated_pickerpanel_tests_staging into lp:ubuntu-ui-toolkit/staging
- drop_deprecated_pickerpanel_tests_staging
- Merge into staging
Status: | Merged |
---|---|
Approved by: | Timo Jyrinki |
Approved revision: | 2143 |
Merged at revision: | 2148 |
Proposed branch: | lp:~timo-jyrinki/ubuntu-ui-toolkit/drop_deprecated_pickerpanel_tests_staging |
Merge into: | lp:ubuntu-ui-toolkit/staging |
Diff against target: |
253 lines (+0/-249) 1 file modified
tests/unit/visual/tst_pickerpanel.11.qml (+0/-249) |
To merge this branch: | bzr merge lp:~timo-jyrinki/ubuntu-ui-toolkit/drop_deprecated_pickerpanel_tests_staging |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
ubuntu-sdk-build-bot | continuous-integration | Approve | |
Zsombor Egri | Approve | ||
Review via email:
|
Commit message
Drop tst_pickerpanel
Description of the change
Errors out on arm64 with certain Qt changes, but all other tests fine.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2143
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:2143
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:2143
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:2143
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:2143
https:/
Executed test runs:
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: 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 : | # |
FAILED: Continuous integration, rev:2143
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:2143
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:2143
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:2143
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:2143
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:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
FAILED: Continuous integration, rev:2143
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:2143
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:2143
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:2143
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:2143
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:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2143
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:2143
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:2143
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:2143
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:2143
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
Preview Diff
1 | === removed file 'tests/unit/visual/tst_pickerpanel.11.qml' |
2 | --- tests/unit/visual/tst_pickerpanel.11.qml 2016-06-15 13:46:51 +0000 |
3 | +++ tests/unit/visual/tst_pickerpanel.11.qml 1970-01-01 00:00:00 +0000 |
4 | @@ -1,249 +0,0 @@ |
5 | -/* |
6 | - * Copyright 2013 Canonical Ltd. |
7 | - * |
8 | - * This program is free software; you can redistribute it and/or modify |
9 | - * it under the terms of the GNU Lesser General Public License as published by |
10 | - * the Free Software Foundation; version 3. |
11 | - * |
12 | - * This program is distributed in the hope that it will be useful, |
13 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | - * GNU Lesser General Public License for more details. |
16 | - * |
17 | - * You should have received a copy of the GNU Lesser General Public License |
18 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | - */ |
20 | - |
21 | -import QtQuick 2.0 |
22 | -import QtTest 1.0 |
23 | -import Ubuntu.Test 1.0 |
24 | -import Ubuntu.Components 1.1 |
25 | -import Ubuntu.Components.Pickers 1.0 |
26 | - |
27 | -Item { |
28 | - id: testSuite |
29 | - width: units.gu(40) |
30 | - height: units.gu(71) |
31 | - |
32 | - Flow { |
33 | - anchors { |
34 | - fill: parent |
35 | - // give a margin so we can dismiss panels |
36 | - topMargin: units.gu(4) |
37 | - } |
38 | - |
39 | - Button { |
40 | - id: defaultMode |
41 | - text: "defaultMode" |
42 | - property date buttonDate: new Date() |
43 | - property Item panel |
44 | - onClicked: panel = PickerPanel.openDatePicker(defaultMode, "buttonDate") |
45 | - } |
46 | - Button { |
47 | - id: modeSet |
48 | - text: "modeSet" |
49 | - property string mode |
50 | - property date buttonDate: new Date() |
51 | - property Item panel |
52 | - onClicked: panel = PickerPanel.openDatePicker(modeSet, "buttonDate", mode) |
53 | - } |
54 | - } |
55 | - |
56 | - SignalSpy { |
57 | - id: closeSpy |
58 | - signalName: "closed" |
59 | - } |
60 | - |
61 | - UbuntuTestCase { |
62 | - name: "PickerPanelAPI" |
63 | - when: windowShown |
64 | - |
65 | - function initTestCase() { |
66 | - waitForRendering(testSuite); |
67 | - } |
68 | - |
69 | - function test_0_clickOndefaultMode() { |
70 | - mouseClick(defaultMode, units.gu(1), units.gu(1)); |
71 | - verify(defaultMode.panel !== null, "the picker is not opened"); |
72 | - verify(defaultMode.panel.picker !== null, "the DatePicker is not defined"); |
73 | - compare(defaultMode.panel.pickerMode, "Years|Months|Days", "the mode from the picker is not the default"); |
74 | - compare(defaultMode.panel.date, defaultMode.buttonDate, "the date from the picker differs from the button's"); |
75 | - compare(defaultMode.panel.caller, defaultMode, "wrong caller"); |
76 | - compare(defaultMode.panel.callerProperty, "buttonDate", "wrong callerProperty"); |
77 | - verify(defaultMode.panel.hasOwnProperty("closed"), "the object has no closed signal"); |
78 | - |
79 | - // dismiss |
80 | - closeSpy.clear(); |
81 | - closeSpy.target = defaultMode.panel; |
82 | - mouseClick(testSuite, units.gu(1), units.gu(1)); |
83 | - closeSpy.wait(); |
84 | - } |
85 | - |
86 | - function test_1_modeSet_YM() { |
87 | - modeSet.mode = "Years|Months" ; |
88 | - mouseClick(modeSet, units.gu(1), units.gu(1)); |
89 | - verify(modeSet.panel !== null, "the picker is opened"); |
90 | - compare(modeSet.panel.date, modeSet.buttonDate, "the date from the picker differs from the button's"); |
91 | - compare(modeSet.panel.pickerMode, modeSet.mode, "the mode from the picker differs from the button's"); |
92 | - // check the number of pickers |
93 | - var picker = findChild(modeSet.panel.picker, "PickerRow_Positioner"); |
94 | - compare(picker.children.length, 3, "there is not enough pickers in the panel"); |
95 | - |
96 | - // dismiss |
97 | - closeSpy.clear(); |
98 | - closeSpy.target = modeSet.panel; |
99 | - mouseClick(testSuite, units.gu(1), units.gu(1)); |
100 | - closeSpy.wait(); |
101 | - } |
102 | - |
103 | - function test_1_modeSet_YD() { |
104 | - ignoreWarning("Invalid DatePicker mode: Years|Days") |
105 | - modeSet.mode = "Years|Days" ; |
106 | - mouseClick(modeSet, units.gu(1), units.gu(1)); |
107 | - verify(modeSet.panel !== null, "the picker is opened"); |
108 | - compare(modeSet.panel.date, modeSet.buttonDate, "the date from the picker differs from the button's"); |
109 | - compare(modeSet.panel.pickerMode, modeSet.mode, "the mode from the picker differs from the button's"); |
110 | - // check the number of pickers |
111 | - var picker = findChild(modeSet.panel.picker, "PickerRow_Positioner"); |
112 | - expectFailContinue("", "this mode is invalid"); |
113 | - compare(picker.children.length, 2, "there is not enough pickers in the panel"); |
114 | - |
115 | - // dismiss |
116 | - closeSpy.clear(); |
117 | - closeSpy.target = modeSet.panel; |
118 | - mouseClick(testSuite, units.gu(1), units.gu(1)); |
119 | - closeSpy.wait(); |
120 | - } |
121 | - |
122 | - function test_1_modeSet_HMS() { |
123 | - modeSet.mode = "Hours|Minutes|Seconds" ; |
124 | - mouseClick(modeSet, units.gu(1), units.gu(1)); |
125 | - verify(modeSet.panel !== null, "the picker is opened"); |
126 | - compare(modeSet.panel.date, modeSet.buttonDate, "the date from the picker differs from the button's"); |
127 | - compare(modeSet.panel.pickerMode, modeSet.mode, "the mode from the picker differs from the button's"); |
128 | - // check the number of pickers |
129 | - var picker = findChild(modeSet.panel.picker, "PickerRow_Positioner"); |
130 | - compare(picker.children.length, 4, "there is not enough pickers in the panel"); |
131 | - |
132 | - // dismiss |
133 | - closeSpy.clear(); |
134 | - closeSpy.target = modeSet.panel; |
135 | - mouseClick(testSuite, units.gu(1), units.gu(1)); |
136 | - closeSpy.wait(); |
137 | - } |
138 | - |
139 | - function test_1_modeSet_HS() { |
140 | - ignoreWarning("Invalid DatePicker mode: Hours|Seconds") |
141 | - modeSet.mode = "Hours|Seconds" ; |
142 | - mouseClick(modeSet, units.gu(1), units.gu(1)); |
143 | - verify(modeSet.panel !== null, "the picker is opened"); |
144 | - compare(modeSet.panel.date, modeSet.buttonDate, "the date from the picker differs from the button's"); |
145 | - compare(modeSet.panel.pickerMode, modeSet.mode, "the mode from the picker differs from the button's"); |
146 | - // check the number of pickers |
147 | - var picker = findChild(modeSet.panel.picker, "PickerRow_Positioner"); |
148 | - expectFailContinue("", "this mode is invalid"); |
149 | - compare(picker.children.length, 2, "there is not enough pickers in the panel"); |
150 | - |
151 | - // dismiss |
152 | - closeSpy.clear(); |
153 | - closeSpy.target = modeSet.panel; |
154 | - mouseClick(testSuite, units.gu(1), units.gu(1)); |
155 | - closeSpy.wait(); |
156 | - } |
157 | - |
158 | - // forced panel tests |
159 | - // these should be executed as last ones |
160 | - function test_2_clickOndefaultMode() { |
161 | - // force panel - this is private specific!!! |
162 | - var privates = findChild(PickerPanel, "PickerPanel_Internals"); |
163 | - privates.isPhone = true; |
164 | - |
165 | - mouseClick(defaultMode, units.gu(1), units.gu(1)); |
166 | - verify(defaultMode.panel !== null, "the picker is not opened"); |
167 | - verify(defaultMode.panel.picker !== null, "the DatePicker is not defined"); |
168 | - compare(defaultMode.panel.pickerMode, "Years|Months|Days", "the mode from the picker is not the default"); |
169 | - compare(defaultMode.panel.date, defaultMode.buttonDate, "the date from the picker differs from the button's"); |
170 | - compare(defaultMode.panel.caller, defaultMode, "wrong caller"); |
171 | - compare(defaultMode.panel.callerProperty, "buttonDate", "wrong callerProperty"); |
172 | - verify(defaultMode.panel.hasOwnProperty("closed"), "the object has no closed signal"); |
173 | - |
174 | - // dismiss |
175 | - closeSpy.clear(); |
176 | - closeSpy.target = defaultMode.panel; |
177 | - mouseClick(testSuite, units.gu(1), units.gu(1)); |
178 | - closeSpy.wait(); |
179 | - } |
180 | - |
181 | - function test_3_modeSet_YM() { |
182 | - modeSet.mode = "Years|Months" ; |
183 | - mouseClick(modeSet, units.gu(1), units.gu(1)); |
184 | - verify(modeSet.panel !== null, "the picker is opened"); |
185 | - compare(modeSet.panel.date, modeSet.buttonDate, "the date from the picker differs from the button's"); |
186 | - compare(modeSet.panel.pickerMode, modeSet.mode, "the mode from the picker differs from the button's"); |
187 | - // check the number of pickers |
188 | - var picker = findChild(modeSet.panel.picker, "PickerRow_Positioner"); |
189 | - compare(picker.children.length, 3, "there is not enough pickers in the panel"); |
190 | - |
191 | - // dismiss |
192 | - closeSpy.clear(); |
193 | - closeSpy.target = modeSet.panel; |
194 | - mouseClick(testSuite, units.gu(1), units.gu(1)); |
195 | - closeSpy.wait(); |
196 | - } |
197 | - |
198 | - function test_3_modeSet_YD() { |
199 | - ignoreWarning("Invalid DatePicker mode: Years|Days") |
200 | - modeSet.mode = "Years|Days" ; |
201 | - mouseClick(modeSet, units.gu(1), units.gu(1)); |
202 | - verify(modeSet.panel !== null, "the picker is opened"); |
203 | - compare(modeSet.panel.date, modeSet.buttonDate, "the date from the picker differs from the button's"); |
204 | - compare(modeSet.panel.pickerMode, modeSet.mode, "the mode from the picker differs from the button's"); |
205 | - // check the number of pickers |
206 | - var picker = findChild(modeSet.panel.picker, "PickerRow_Positioner"); |
207 | - expectFailContinue("", "this mode is invalid"); |
208 | - compare(picker.children.length, 2, "there is not enough pickers in the panel"); |
209 | - |
210 | - // dismiss |
211 | - closeSpy.clear(); |
212 | - closeSpy.target = modeSet.panel; |
213 | - mouseClick(testSuite, units.gu(1), units.gu(1)); |
214 | - closeSpy.wait(); |
215 | - } |
216 | - |
217 | - function test_3_modeSet_HMS() { |
218 | - modeSet.mode = "Hours|Minutes|Seconds" ; |
219 | - mouseClick(modeSet, units.gu(1), units.gu(1)); |
220 | - verify(modeSet.panel !== null, "the picker is opened"); |
221 | - compare(modeSet.panel.date, modeSet.buttonDate, "the date from the picker differs from the button's"); |
222 | - compare(modeSet.panel.pickerMode, modeSet.mode, "the mode from the picker differs from the button's"); |
223 | - // check the number of pickers |
224 | - var picker = findChild(modeSet.panel.picker, "PickerRow_Positioner"); |
225 | - compare(picker.children.length, 4, "there is not enough pickers in the panel"); |
226 | - |
227 | - // dismiss |
228 | - closeSpy.clear(); |
229 | - closeSpy.target = modeSet.panel; |
230 | - mouseClick(testSuite, units.gu(1), units.gu(1)); |
231 | - closeSpy.wait(); |
232 | - } |
233 | - |
234 | - function test_3_modeSet_HS() { |
235 | - ignoreWarning("Invalid DatePicker mode: Hours|Seconds") |
236 | - modeSet.mode = "Hours|Seconds" ; |
237 | - mouseClick(modeSet, units.gu(1), units.gu(1)); |
238 | - verify(modeSet.panel !== null, "the picker is opened"); |
239 | - compare(modeSet.panel.date, modeSet.buttonDate, "the date from the picker differs from the button's"); |
240 | - compare(modeSet.panel.pickerMode, modeSet.mode, "the mode from the picker differs from the button's"); |
241 | - // check the number of pickers |
242 | - var picker = findChild(modeSet.panel.picker, "PickerRow_Positioner"); |
243 | - expectFailContinue("", "this mode is invalid"); |
244 | - compare(picker.children.length, 2, "there is not enough pickers in the panel"); |
245 | - |
246 | - // dismiss |
247 | - closeSpy.clear(); |
248 | - closeSpy.target = modeSet.panel; |
249 | - mouseClick(testSuite, units.gu(1), units.gu(1)); |
250 | - closeSpy.wait(); |
251 | - } |
252 | - } |
253 | -} |
PASSED: Continuous integration, rev:2143 /jenkins. ubuntu. com/ubuntu- sdk/job/ ubuntu- ui-toolkit- ci-i386- gles-stable/ 1302/ /jenkins. ubuntu. com/ubuntu- sdk/job/ generic- update- mp/7113/ console
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild: /jenkins. ubuntu. com/ubuntu- sdk/job/ ubuntu- ui-toolkit- ci-i386- gles-stable/ 1302/rebuild
https:/