on xenial help sign in
drop search part from panel tests.
commit2b87412297a86e8319bc8977fcc88dae52b968e8 authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 27 Jun 2014, 21:03 (12 years ago) parent473d191
1 file changed−35
tests/qmltests/Panel/tst_Panel.qml−35
tests/qmltests/Panel/tst_Panel.qml−35
@@ -30,13 +30,6 @@ Item {
3030 width: units.gu(40)
3131 height: units.gu(80)
3232
33− property bool searchClicked: false
34−
35− Connections {
36− target: panel
37− onSearchClicked: searchClicked = true
38− }
39−
4033 Panel {
4134 id: panel
4235 anchors.fill: parent
@@ -62,7 +55,6 @@ Item {
6255 function init() {
6356 panel.indicators.initialise();
6457
65− searchClicked = false;
6658 panel.indicators.hide();
6759 tryCompare(panel.indicators.hideAnimation, "running", false);
6860 tryCompare(panel.indicators, "state", "initial");
@@ -205,38 +197,11 @@ Item {
205197 }
206198 }
207199
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−
234200 // Test the vertical velocity check when flicking the indicators open at an angle.
235201 // If the vertical velocity is above a specific point, we shouldnt change active indicators
236202 // if the x position changes
237203 function test_vertical_velocity_detector() {
238204 panel.fullscreenMode = false;
239− panel.searchVisible = false;
240205
241206 var indicatorRow = findChild(panel.indicators, "indicatorRow");
242207 verify(indicatorRow !== null);