on xenial help sign in
Fix up the Launcher tests

After a mouseClick, the mouse now hovers at the click point. Switch the order of movements so the mouse actually moves.

commit5d4d0aabf41d4211270c68bdd54ee07376291ecb authorDalton Durst <dalton@ubports.com> dateTue 14 May 2019, 10:05 (7 years ago) parent3d5a91f
1 file changed+2−2
tests/qmltests/Launcher/tst_Launcher.qml+2−2
tests/qmltests/Launcher/tst_Launcher.qml+2−2
@@ -1438,14 +1438,14 @@ Rectangle {
14381438 tryCompare(tooltipShape, "opacity", .0);
14391439
14401440 // Left click hides the quicklist, tooltip is still dismissed
1441− mouseClick(item, item.width / 2, item.height / 2, Qt.LefftButton);
1441+ mouseClick(item, item.width / 2, item.height / 2, Qt.LeftButton);
14421442 tryCompare(quickListShape, "visible", false);
14431443 tryCompare(tooltipShape, "visible", false);
14441444 tryCompare(tooltipShape, "opacity", .0);
14451445
14461446 // Mouse motion should should show tooltip again
1447− mouseMove(item, item.width / 2, item.height / 2, 10);
14481447 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1448+ mouseMove(item, item.width / 2, item.height / 2, 10);
14491449 tryCompare(tooltipShape, "visible", true);
14501450 tryCompare(tooltipShape, "opacity", .95);
14511451 }