on xenial help sign in
fix the verification
10365a3Michael Zanetti
tests/qmltests/Launcher/tst_Launcher.qml+4−3
@@ -843,20 +843,21 @@ Rectangle {
843 function test_launcher_dismiss() {
843 function test_launcher_dismiss() {
844 dragLauncherIntoView();
844 dragLauncherIntoView();
845 verify(launcher.state == "visible");
845 verify(launcher.state == "visible");
846− clickThroughTester.pressCount = 0;
847
846
847+ clickThroughTester.pressCount = 0;
848 mouseClick(root, root.width / 2, units.gu(1));
848 mouseClick(root, root.width / 2, units.gu(1));
849 waitUntilLauncherDisappears();
849 waitUntilLauncherDisappears();
850 verify(launcher.state == "");
850 verify(launcher.state == "");
851− verify(clickThroughTester.pressCount, 1);
851+ compare(clickThroughTester.pressCount, 1);
852
852
853 // and repeat, as a test for regression in lpbug#1531339
853 // and repeat, as a test for regression in lpbug#1531339
854 dragLauncherIntoView();
854 dragLauncherIntoView();
855 verify(launcher.state == "visible");
855 verify(launcher.state == "visible");
856+ clickThroughTester.pressCount = 0;
856 mouseClick(root, root.width / 2, units.gu(1));
857 mouseClick(root, root.width / 2, units.gu(1));
857 waitUntilLauncherDisappears();
858 waitUntilLauncherDisappears();
858 verify(launcher.state == "");
859 verify(launcher.state == "");
859− verify(clickThroughTester.pressCount, 2);
860+ compare(clickThroughTester.pressCount, 1);
860 }
861 }
861
862
862 function test_quicklist_positioning_data() {
863 function test_quicklist_positioning_data() {