@@ -1366,15 +1366,18 @@ Rectangle {
1367 // Initial state
1367 // Initial state
1368 tryCompare(tooltipShape, "visible", false);
1368 tryCompare(tooltipShape, "visible", false);
1369+ tryCompare(tooltipShape, "opacity", .0);
1370 // Move the mouse on the launcher icon
1371 // Move the mouse on the launcher icon
1371 mouseMove(item, item.width / 2, item.height / 2, 10);
1372 mouseMove(item, item.width / 2, item.height / 2, 10);
1372 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1373 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1373 tryCompare(tooltipShape, "visible", true);
1374 tryCompare(tooltipShape, "visible", true);
1375+ tryCompare(tooltipShape, "opacity", .95);
1375 // Move the mouse away
1377 // Move the mouse away
1376 mouseMove(root, root.width, root.height / 2, 10);
1378 mouseMove(root, root.width, root.height / 2, 10);
1377 tryCompare(tooltipShape, "visible", false);
1379 tryCompare(tooltipShape, "visible", false);
1380+ tryCompare(tooltipShape, "opacity", .0);
1380 function test_quicklist_dismisses_tooltip() {
1383 function test_quicklist_dismisses_tooltip() {
@@ -1390,26 +1393,31 @@ Rectangle {
1391 // Initial state
1394 // Initial state
1392 tryCompare(tooltipShape, "visible", false);
1395 tryCompare(tooltipShape, "visible", false);
1396+ tryCompare(tooltipShape, "opacity", .0);
1394 // Move the mouse on the launcher icon
1398 // Move the mouse on the launcher icon
1395 mouseMove(item, item.width / 2, item.height / 2, 10);
1399 mouseMove(item, item.width / 2, item.height / 2, 10);
1396 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1400 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1397 tryCompare(tooltipShape, "visible", true);
1401 tryCompare(tooltipShape, "visible", true);
1402+ tryCompare(tooltipShape, "opacity", .95);
1399 // Right click to show the quicklist
1404 // Right click to show the quicklist
1400 mouseClick(item, item.width / 2, item.height / 2, Qt.RightButton);
1405 mouseClick(item, item.width / 2, item.height / 2, Qt.RightButton);
1401 tryCompare(quickListShape, "visible", true);
1406 tryCompare(quickListShape, "visible", true);
1402 tryCompare(tooltipShape, "visible", false);
1407 tryCompare(tooltipShape, "visible", false);
1408+ tryCompare(tooltipShape, "opacity", .0);
1404 // Left click hides the quicklist, tooltip is still dismissed
1410 // Left click hides the quicklist, tooltip is still dismissed
1405 mouseClick(item, item.width / 2, item.height / 2, Qt.LefftButton);
1411 mouseClick(item, item.width / 2, item.height / 2, Qt.LefftButton);
1406 tryCompare(quickListShape, "visible", false);
1412 tryCompare(quickListShape, "visible", false);
1407 tryCompare(tooltipShape, "visible", false);
1413 tryCompare(tooltipShape, "visible", false);
1414+ tryCompare(tooltipShape, "opacity", .0);
1409 // Mouse motion should should show tooltip again
1416 // Mouse motion should should show tooltip again
1410 mouseMove(item, item.width / 2, item.height / 2, 10);
1417 mouseMove(item, item.width / 2, item.height / 2, 10);
1411 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1418 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1412 tryCompare(tooltipShape, "visible", true);
1419 tryCompare(tooltipShape, "visible", true);
1420+ tryCompare(tooltipShape, "opacity", .95);
1415 function test_click_dismisses_tooltip() {
1423 function test_click_dismisses_tooltip() {
@@ -1423,21 +1431,25 @@ Rectangle {
1423 mouseMove(root, root.width, root.height / 2, 10);
1431 mouseMove(root, root.width, root.height / 2, 10);
1425 // Initial state
1433 // Initial state
1426− compare(tooltipShape.visible, false);
1434+ tryCompare(tooltipShape, "visible", false);
1435+ tryCompare(tooltipShape, "opacity", .0);
1428 // Move the mouse on the launcher icon
1437 // Move the mouse on the launcher icon
1429 mouseMove(item, item.width / 2, item.height / 2, 10);
1438 mouseMove(item, item.width / 2, item.height / 2, 10);
1430 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1439 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1431 tryCompare(tooltipShape, "visible", true);
1440 tryCompare(tooltipShape, "visible", true);
1441+ tryCompare(tooltipShape, "opacity", .95);
1433 // Left click should dismiss the tooltip
1443 // Left click should dismiss the tooltip
1434 mouseClick(item, item.width / 2 + 1, item.height / 2, Qt.LeftButton);
1444 mouseClick(item, item.width / 2 + 1, item.height / 2, Qt.LeftButton);
1435 tryCompare(tooltipShape, "visible", false);
1445 tryCompare(tooltipShape, "visible", false);
1446+ tryCompare(tooltipShape, "opacity", .0);
1437 // Mouse motion should should show tooltip again
1448 // Mouse motion should should show tooltip again
1438 mouseMove(item, item.width / 2, item.height / 2, 10);
1449 mouseMove(item, item.width / 2, item.height / 2, 10);
1439 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1450 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
1440 tryCompare(tooltipShape, "visible", true);
1451 tryCompare(tooltipShape, "visible", true);
1452+ tryCompare(tooltipShape, "opacity", .95);