@@ -1366,15 +1366,18 @@ Rectangle {
13661366
13671367 // Initial state
13681368 tryCompare(tooltipShape, "visible", false);
1369+ tryCompare(tooltipShape, "opacity", .0);
13691370
13701371 // Move the mouse on the launcher icon
13711372 mouseMove(item, item.width / 2, item.height / 2, 10);
13721373 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
13731374 tryCompare(tooltipShape, "visible", true);
1375+ tryCompare(tooltipShape, "opacity", .95);
13741376
13751377 // Move the mouse away
13761378 mouseMove(root, root.width, root.height / 2, 10);
13771379 tryCompare(tooltipShape, "visible", false);
1380+ tryCompare(tooltipShape, "opacity", .0);
13781381 }
13791382
13801383 function test_quicklist_dismisses_tooltip() {
@@ -1390,26 +1393,31 @@ Rectangle {
13901393
13911394 // Initial state
13921395 tryCompare(tooltipShape, "visible", false);
1396+ tryCompare(tooltipShape, "opacity", .0);
13931397
13941398 // Move the mouse on the launcher icon
13951399 mouseMove(item, item.width / 2, item.height / 2, 10);
13961400 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
13971401 tryCompare(tooltipShape, "visible", true);
1402+ tryCompare(tooltipShape, "opacity", .95);
13981403
13991404 // Right click to show the quicklist
14001405 mouseClick(item, item.width / 2, item.height / 2, Qt.RightButton);
14011406 tryCompare(quickListShape, "visible", true);
14021407 tryCompare(tooltipShape, "visible", false);
1408+ tryCompare(tooltipShape, "opacity", .0);
14031409
14041410 // Left click hides the quicklist, tooltip is still dismissed
14051411 mouseClick(item, item.width / 2, item.height / 2, Qt.LefftButton);
14061412 tryCompare(quickListShape, "visible", false);
14071413 tryCompare(tooltipShape, "visible", false);
1414+ tryCompare(tooltipShape, "opacity", .0);
14081415
14091416 // Mouse motion should should show tooltip again
14101417 mouseMove(item, item.width / 2, item.height / 2, 10);
14111418 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
14121419 tryCompare(tooltipShape, "visible", true);
1420+ tryCompare(tooltipShape, "opacity", .95);
14131421 }
14141422
14151423 function test_click_dismisses_tooltip() {
@@ -1423,21 +1431,25 @@ Rectangle {
14231431 mouseMove(root, root.width, root.height / 2, 10);
14241432
14251433 // Initial state
1426− compare(tooltipShape.visible, false);
1434+ tryCompare(tooltipShape, "visible", false);
1435+ tryCompare(tooltipShape, "opacity", .0);
14271436
14281437 // Move the mouse on the launcher icon
14291438 mouseMove(item, item.width / 2, item.height / 2, 10);
14301439 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
14311440 tryCompare(tooltipShape, "visible", true);
1441+ tryCompare(tooltipShape, "opacity", .95);
14321442
14331443 // Left click should dismiss the tooltip
14341444 mouseClick(item, item.width / 2 + 1, item.height / 2, Qt.LeftButton);
14351445 tryCompare(tooltipShape, "visible", false);
1446+ tryCompare(tooltipShape, "opacity", .0);
14361447
14371448 // Mouse motion should should show tooltip again
14381449 mouseMove(item, item.width / 2, item.height / 2, 10);
14391450 mouseMove(item, item.width / 2 + 1, item.height / 2, 10);
14401451 tryCompare(tooltipShape, "visible", true);
1452+ tryCompare(tooltipShape, "opacity", .95);
14411453 }
14421454 }
14431455}