@@ -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)
33− property bool searchClicked: false
37− onSearchClicked: searchClicked = true
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();
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 {
208− function test_search_click_when_visible() {
209− panel.fullscreenMode = false;
210− panel.searchVisible = true;
212− var searchIndicator = findChild(panel, "search");
213− verify(searchIndicator !== null);
215− tap(searchIndicator, 1, 1);
217− compare(searchClicked, true,
218− "Tapping search indicator while it was enabled did not emit searchClicked signal");
221− function test_search_click_when_not_visible() {
222− panel.fullscreenMode = false;
223− panel.searchVisible = false;
225− var searchIndicator = findChild(panel, "search");
226− verify(searchIndicator !== null);
228− tap(searchIndicator, 1, 1);
230− compare(searchClicked, false,
231− "Tapping search indicator while it was not visible emitted searchClicked signal");
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;
241 var indicatorRow = findChild(panel.indicators, "indicatorRow");
206 var indicatorRow = findChild(panel.indicators, "indicatorRow");
242 verify(indicatorRow !== null);
207 verify(indicatorRow !== null);