Fix tst_qquicktext::hover()
authorJ-P Nurmi <jpnurmi@digia.com>
Thu, 27 Feb 2014 10:04:04 +0000 (11:04 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 28 Feb 2014 01:36:18 +0000 (02:36 +0100)
Task-number: QTBUG-36938
Change-Id: I28da25235ae7b8805ebc474777a5edd43ceef941
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
tests/auto/quick/qquicktext/tst_qquicktext.cpp

index 59806a8..0b69981 100644 (file)
@@ -3823,6 +3823,8 @@ void tst_qquicktext::hover()
 
     QQuickWindow *window = qobject_cast<QQuickWindow *>(object.data());
     QVERIFY(window);
+    window->show();
+    QVERIFY(QTest::qWaitForWindowExposed(window));
 
     QQuickMouseArea *mouseArea = window->property("mouseArea").value<QQuickMouseArea *>();
     QVERIFY(mouseArea);