Commit ee36ee7f authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Tests: Fix warnings about ignored return value


Check return value of Test::qWaitForWindowExposed()

Change-Id: I21dd077d2610b6a374e2e6ad943ee39e0b6d4e79
Reviewed-by: default avatarMitch Curtis <mitch.curtis@qt.io>
Showing with 2 additions and 2 deletions
......@@ -159,7 +159,7 @@ void tst_dialogs::dialogButtonHandler()
root->setProperty("mustBlock", mustBlock);
QQuickWindow *window = root->findChild<QQuickWindow*>();
QTest::qWaitForWindowExposed(window);
QVERIFY(QTest::qWaitForWindowExposed(window));
/* Hack to find the created buttons: since they are created by a
* QQuickRepeater, they don't appear on the hierarchy tree; therefore, we
......@@ -242,7 +242,7 @@ void tst_dialogs::dialogKeyHandler()
root->setProperty("mustBlock", mustBlock);
QQuickWindow *window = root->findChild<QQuickWindow*>();
QTest::qWaitForWindowExposed(window);
QVERIFY(QTest::qWaitForWindowExposed(window));
QTest::keyClick(window, Qt::Key(key));
QTRY_VERIFY(root->property("handlerWasCalled").toBool());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment