Stabilize tst_QQuickAccessible
authorJan Arve Sæther <jan-arve.saether@theqtcompany.com>
Thu, 6 Nov 2014 09:53:49 +0000 (10:53 +0100)
committerJan Arve Sæther <jan-arve.saether@theqtcompany.com>
Thu, 6 Nov 2014 12:55:58 +0000 (13:55 +0100)
There is no reason to wait for the window to activate

Task-number: QTBUG-42355
Change-Id: I5faaff5bddd367e6dd57a6a922011c87c847148e
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp

index 921c81a..f6d5d16 100644 (file)
@@ -383,8 +383,6 @@ void tst_QQuickAccessible::checkableTest()
     QScopedPointer<QQuickView> window(new QQuickView());
     window->setSource(testFileUrl("checkbuttons.qml"));
     window->show();
-    window->requestActivate();
-    QVERIFY(QTest::qWaitForWindowActive(window.data()));
 
     QQuickItem *contentItem = window->contentItem();
     QVERIFY(contentItem);
@@ -462,8 +460,6 @@ void tst_QQuickAccessible::ignoredTest()
     QScopedPointer<QQuickView> window(new QQuickView());
     window->setSource(testFileUrl("ignored.qml"));
     window->show();
-    window->requestActivate();
-    QVERIFY(QTest::qWaitForWindowActive(window.data()));
 
     QQuickItem *contentItem = window->contentItem();
     QVERIFY(contentItem);