summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdialog/tst_qdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qdialog/tst_qdialog.cpp')
-rw-r--r--tests/auto/qdialog/tst_qdialog.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/qdialog/tst_qdialog.cpp b/tests/auto/qdialog/tst_qdialog.cpp
index 5f2ccd3..dc6878d 100644
--- a/tests/auto/qdialog/tst_qdialog.cpp
+++ b/tests/auto/qdialog/tst_qdialog.cpp
@@ -194,7 +194,7 @@ void tst_QDialog::showExtension()
QCOMPARE( testWidget->size(), dlgSize );
QPoint oldPosition = testWidget->pos();
-
+
#ifdef Q_WS_S60
const int htDiff = ext->size().height() - testWidget->size().height();
#endif
@@ -202,7 +202,7 @@ void tst_QDialog::showExtension()
((DummyDialog*)testWidget)->showExtension( TRUE );
// while ( testWidget->size() == dlgSize )
// qApp->processEvents();
-
+
#ifdef Q_WS_S60
QPoint expectedPosition;
if (!horizontal) {
@@ -584,6 +584,7 @@ void tst_QDialog::reject()
{
TestRejectDialog dialog;
dialog.show();
+ QTest::qWaitForWindowShown(&dialog);
QTest::qWait(100);
QVERIFY(dialog.isVisible());
dialog.reject();
@@ -592,7 +593,9 @@ void tst_QDialog::reject()
QCOMPARE(dialog.called, 1);
dialog.show();
+ QTest::qWaitForWindowShown(&dialog);
QTest::qWait(100);
+
QVERIFY(dialog.isVisible());
QVERIFY(dialog.close());
QTest::qWait(100);
@@ -601,6 +604,7 @@ void tst_QDialog::reject()
dialog.cancelReject = true;
dialog.show();
+ QTest::qWaitForWindowShown(&dialog);
QTest::qWait(100);
QVERIFY(dialog.isVisible());
dialog.reject();