on xenial help sign in
Add a delay in mouseMove.
f3abaa9Andrea Azzarone
tests/qmltests/Launcher/tst_Launcher.qml+14−14
@@ -1362,18 +1362,18 @@ Rectangle {
1362 var tooltipShape = findChild(launcher, "tooltipShape");
1362 var tooltipShape = findChild(launcher, "tooltipShape");
1363
1363
1364 // Make sure we don't start the test with the mouse hovering the launcher
1364 // Make sure we don't start the test with the mouse hovering the launcher
1365− mouseMove(root, root.width, root.height / 2);
1365+ mouseMove(root, root.width, root.height / 2, 10);
1366
1366
1367 // Initial state
1367 // Initial state
1368 tryCompare(tooltipShape, "visible", false);
1368 tryCompare(tooltipShape, "visible", false);
1369
1369
1370 // Move the mouse on the launcher icon
1370 // Move the mouse on the launcher icon
1371− mouseMove(item, item.width / 2, item.height / 2);
1371+ mouseMove(item, item.width / 2, item.height / 2, 10);
1372− mouseMove(item, item.width / 2 + 1, item.height / 2);
1372+ mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1373 tryCompare(tooltipShape, "visible", true);
1373 tryCompare(tooltipShape, "visible", true);
1374
1374
1375 // Move the mouse away
1375 // Move the mouse away
1376− mouseMove(root, root.width, root.height / 2);
1376+ mouseMove(root, root.width, root.height / 2, 10);
1377 tryCompare(tooltipShape, "visible", false);
1377 tryCompare(tooltipShape, "visible", false);
1378 }
1378 }
1379
1379
@@ -1386,14 +1386,14 @@ Rectangle {
1386 var quickListShape = findChild(launcher, "quickListShape");
1386 var quickListShape = findChild(launcher, "quickListShape");
1387
1387
1388 // Make sure we don't start the test with the mouse hovering the launcher
1388 // Make sure we don't start the test with the mouse hovering the launcher
1389− mouseMove(root, root.width, root.height / 2);
1389+ mouseMove(root, root.width, root.height / 2, 10);
1390
1390
1391 // Initial state
1391 // Initial state
1392 tryCompare(tooltipShape, "visible", false);
1392 tryCompare(tooltipShape, "visible", false);
1393
1393
1394 // Move the mouse on the launcher icon
1394 // Move the mouse on the launcher icon
1395− mouseMove(item, item.width / 2, item.height / 2);
1395+ mouseMove(item, item.width / 2, item.height / 2, 10);
1396− mouseMove(item, item.width / 2 + 1, item.height / 2);
1396+ mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1397 tryCompare(tooltipShape, "visible", true);
1397 tryCompare(tooltipShape, "visible", true);
1398
1398
1399 // Right click to show the quicklist
1399 // Right click to show the quicklist
@@ -1407,8 +1407,8 @@ Rectangle {
1407 tryCompare(tooltipShape, "visible", false);
1407 tryCompare(tooltipShape, "visible", false);
1408
1408
1409 // Mouse motion should should show tooltip again
1409 // Mouse motion should should show tooltip again
1410− mouseMove(item, item.width / 2, item.height / 2);
1410+ mouseMove(item, item.width / 2, item.height / 2, 10);
1411− mouseMove(item, item.width / 2 + 1, item.height / 2);
1411+ mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1412 tryCompare(tooltipShape, "visible", true);
1412 tryCompare(tooltipShape, "visible", true);
1413 }
1413 }
1414
1414
@@ -1420,14 +1420,14 @@ Rectangle {
1420 var tooltipShape = findChild(launcher, "tooltipShape");
1420 var tooltipShape = findChild(launcher, "tooltipShape");
1421
1421
1422 // Make sure we don't start the test with the mouse hovering the launcher
1422 // Make sure we don't start the test with the mouse hovering the launcher
1423− mouseMove(root, root.width, root.height / 2);
1423+ mouseMove(root, root.width, root.height / 2, 10);
1424
1424
1425 // Initial state
1425 // Initial state
1426 compare(tooltipShape.visible, false);
1426 compare(tooltipShape.visible, false);
1427
1427
1428 // Move the mouse on the launcher icon
1428 // Move the mouse on the launcher icon
1429− mouseMove(item, item.width / 2, item.height / 2);
1429+ mouseMove(item, item.width / 2, item.height / 2, 10);
1430− mouseMove(item, item.width / 2 + 1, item.height / 2);
1430+ mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1431 tryCompare(tooltipShape, "visible", true);
1431 tryCompare(tooltipShape, "visible", true);
1432
1432
1433 // Left click should dismiss the tooltip
1433 // Left click should dismiss the tooltip
@@ -1435,8 +1435,8 @@ Rectangle {
1435 tryCompare(tooltipShape, "visible", false);
1435 tryCompare(tooltipShape, "visible", false);
1436
1436
1437 // Mouse motion should should show tooltip again
1437 // Mouse motion should should show tooltip again
1438− mouseMove(item, item.width / 2, item.height / 2);
1438+ mouseMove(item, item.width / 2, item.height / 2, 10);
1439− mouseMove(item, item.width / 2 + 1, item.height / 2);
1439+ mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1440 tryCompare(tooltipShape, "visible", true);
1440 tryCompare(tooltipShape, "visible", true);
1441 }
1441 }
1442 }
1442 }