summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/dialogs/qwizard
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-07-20 16:18:29 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-24 00:08:28 +0200
commit607c37befb145c3aa1b9d29365ac682a2bd3a55f (patch)
treedf5203032be7ee9ef22558185a88b763ae00cdb5 /tests/auto/widgets/dialogs/qwizard
parentd38fb0b535f3144dee4aa33c321e88d07f01add6 (diff)
Remove usage of deprecated qWaitForWindowShown in dialog tests.
Change-Id: Id3ebe202d65ee682e8e2e3ae107808e9abb6cc15 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'tests/auto/widgets/dialogs/qwizard')
-rw-r--r--tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp b/tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp
index 362c269e6f..a51717fa47 100644
--- a/tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp
+++ b/tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp
@@ -2537,7 +2537,7 @@ void tst_QWizard::task161658_alignments()
int idx = wizard.addPage(&page);
wizard.setStartId(idx);
wizard.show();
- QTest::qWait(100);
+ QVERIFY(QTest::qWaitForWindowExposed(&wizard));
foreach (QLabel *subtitleLabel, qFindChildren<QLabel *>(&wizard)) {
if (subtitleLabel->text().startsWith("SUBTITLE#")) {
@@ -2569,7 +2569,8 @@ void tst_QWizard::task177022_setFixedSize()
QCOMPARE(wiz.maximumHeight(), height);
wiz.show();
- QTest::qWait(100);
+ QVERIFY(QTest::qWaitForWindowExposed(&wiz));
+
QCOMPARE(wiz.size(), QSize(width, height));
QCOMPARE(wiz.minimumWidth(), width);
QCOMPARE(wiz.minimumHeight(), height);
@@ -2601,7 +2602,8 @@ void tst_QWizard::task248107_backButton()
wizard.addPage(&page4);
wizard.show();
- QTest::qWait(100);
+ QVERIFY(QTest::qWaitForWindowExposed(&wizard));
+
QCOMPARE(wizard.currentPage(), &page1);
QTest::mouseClick(wizard.button(QWizard::NextButton), Qt::LeftButton);