on xenial help sign in
fix the verification
commit10365a36e1d3a9be4efbc7b2d826b69cd7dc6862 authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 4 May 2016, 15:07 (10 years ago) parent7973e42
1 file changed+4−3
tests/qmltests/Launcher/tst_Launcher.qml+4−3
tests/qmltests/Launcher/tst_Launcher.qml+4−3
@@ -843,20 +843,21 @@ Rectangle {
843843 function test_launcher_dismiss() {
844844 dragLauncherIntoView();
845845 verify(launcher.state == "visible");
846− clickThroughTester.pressCount = 0;
847846
847+ clickThroughTester.pressCount = 0;
848848 mouseClick(root, root.width / 2, units.gu(1));
849849 waitUntilLauncherDisappears();
850850 verify(launcher.state == "");
851− verify(clickThroughTester.pressCount, 1);
851+ compare(clickThroughTester.pressCount, 1);
852852
853853 // and repeat, as a test for regression in lpbug#1531339
854854 dragLauncherIntoView();
855855 verify(launcher.state == "visible");
856+ clickThroughTester.pressCount = 0;
856857 mouseClick(root, root.width / 2, units.gu(1));
857858 waitUntilLauncherDisappears();
858859 verify(launcher.state == "");
859− verify(clickThroughTester.pressCount, 2);
860+ compare(clickThroughTester.pressCount, 1);
860861 }
861862
862863 function test_quicklist_positioning_data() {