From b9e05ba421c97ec60f4b308efaaed32c1a35b0b8 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Thu, 21 Feb 2013 13:17:45 +0100 Subject: Stabilize clicking in QQuickTextEdit test This test would try to emulate mouse clicks and not wait inbetween. That can lead to clicks spilling over to the next mouse event. Change-Id: I320f86453215190a1c694ba49c0fc3831dcb60b9 Reviewed-by: Pierre Rossi --- tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/auto/quick') diff --git a/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp b/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp index 78ae94e53e..bf7539e449 100644 --- a/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp +++ b/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp @@ -1872,6 +1872,8 @@ void tst_qquicktextedit::mouseSelection() QTest::mouseRelease(&window, Qt::LeftButton, Qt::NoModifier, p2); QTRY_COMPARE(textEditObject->selectedText(), selectedText); + QTest::qWait(QGuiApplication::styleHints()->mouseDoubleClickInterval() + 10); + // Clicking and shift to clicking between the same points should select the same text. textEditObject->setCursorPosition(0); if (clicks > 1) -- cgit v1.2.3