on xenial help sign in
drop search part from panel tests.
2b87412Michael Zanetti
tests/qmltests/Panel/tst_Panel.qml−35
@@ -30,13 +30,6 @@ Item {
30 width: units.gu(40)
30 width: units.gu(40)
31 height: units.gu(80)
31 height: units.gu(80)
32
32
33− property bool searchClicked: false
34−
35− Connections {
36− target: panel
37− onSearchClicked: searchClicked = true
38− }
39−
40 Panel {
33 Panel {
41 id: panel
34 id: panel
42 anchors.fill: parent
35 anchors.fill: parent
@@ -62,7 +55,6 @@ Item {
62 function init() {
55 function init() {
63 panel.indicators.initialise();
56 panel.indicators.initialise();
64
57
65− searchClicked = false;
66 panel.indicators.hide();
58 panel.indicators.hide();
67 tryCompare(panel.indicators.hideAnimation, "running", false);
59 tryCompare(panel.indicators.hideAnimation, "running", false);
68 tryCompare(panel.indicators, "state", "initial");
60 tryCompare(panel.indicators, "state", "initial");
@@ -205,38 +197,11 @@ Item {
205 }
197 }
206 }
198 }
207
199
208− function test_search_click_when_visible() {
209− panel.fullscreenMode = false;
210− panel.searchVisible = true;
211−
212− var searchIndicator = findChild(panel, "search");
213− verify(searchIndicator !== null);
214−
215− tap(searchIndicator, 1, 1);
216−
217− compare(searchClicked, true,
218− "Tapping search indicator while it was enabled did not emit searchClicked signal");
219− }
220−
221− function test_search_click_when_not_visible() {
222− panel.fullscreenMode = false;
223− panel.searchVisible = false;
224−
225− var searchIndicator = findChild(panel, "search");
226− verify(searchIndicator !== null);
227−
228− tap(searchIndicator, 1, 1);
229−
230− compare(searchClicked, false,
231− "Tapping search indicator while it was not visible emitted searchClicked signal");
232− }
233−
234 // Test the vertical velocity check when flicking the indicators open at an angle.
200 // Test the vertical velocity check when flicking the indicators open at an angle.
235 // If the vertical velocity is above a specific point, we shouldnt change active indicators
201 // If the vertical velocity is above a specific point, we shouldnt change active indicators
236 // if the x position changes
202 // if the x position changes
237 function test_vertical_velocity_detector() {
203 function test_vertical_velocity_detector() {
238 panel.fullscreenMode = false;
204 panel.fullscreenMode = false;
239− panel.searchVisible = false;
240
205
241 var indicatorRow = findChild(panel.indicators, "indicatorRow");
206 var indicatorRow = findChild(panel.indicators, "indicatorRow");
242 verify(indicatorRow !== null);
207 verify(indicatorRow !== null);