From b3d9dd9af3d867f9b5fad195d91c011618bb8c61 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Fri, 2 Jul 2021 15:51:03 +0200 Subject: tst_splitview.qml: ensure hover events are sent to handles Task-number: QTBUG-94968 Change-Id: I7bc4ef907097fe7b1517f9419942fbfe06a4cc62 Pick-to: 6.2 Reviewed-by: Igor Bugaev Reviewed-by: Mitch Curtis --- tests/auto/controls/data/tst_splitview.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/auto/controls/data/tst_splitview.qml b/tests/auto/controls/data/tst_splitview.qml index 5281e1e8..b9ace27e 100644 --- a/tests/auto/controls/data/tst_splitview.qml +++ b/tests/auto/controls/data/tst_splitview.qml @@ -2127,7 +2127,7 @@ TestCase { // Move the mouse over the handle. var handles = findHandles(control) var targetHandle = handles[0] - // Test fails if we don't do two moves for some reason... + // Test fails if we don't do two moves for some reason... QTBUG-94968 mouseMove(targetHandle, targetHandle.width / 2, targetHandle.height / 2) mouseMove(targetHandle, targetHandle.width / 2, targetHandle.height / 2) verify(targetHandle.SplitHandle.hovered) @@ -2138,6 +2138,7 @@ TestCase { // Move the mouse back over the handle. mouseMove(targetHandle, targetHandle.width / 2, targetHandle.height / 2) + mouseMove(targetHandle, targetHandle.width / 2, targetHandle.height / 2) verify(targetHandle.SplitHandle.hovered) // Move the mouse to the MouseArea on the right. The handle should no longer be hovered. -- cgit v1.2.3