diff options
author | Oliver Wolff <oliver.wolff@digia.com> | 2012-10-22 10:59:52 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-26 00:26:35 +0200 |
commit | deac55becd18efa4504eb686a1bb8081a5cd488a (patch) | |
tree | bb3ff07089074d8efb76222c309e739b599f67e9 /tests | |
parent | 9b710bc13b9f8d8cf163d14d1f6e741e7851b06e (diff) |
Properly check for widget's visibility in doublespinbox autotest
Change-Id: If9e08ab5c84090729537e2a060257564c62fda9a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/widgets/widgets/qdoublespinbox/tst_qdoublespinbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/widgets/widgets/qdoublespinbox/tst_qdoublespinbox.cpp b/tests/auto/widgets/widgets/qdoublespinbox/tst_qdoublespinbox.cpp index 898f566995..12cc4e2d10 100644 --- a/tests/auto/widgets/widgets/qdoublespinbox/tst_qdoublespinbox.cpp +++ b/tests/auto/widgets/widgets/qdoublespinbox/tst_qdoublespinbox.cpp @@ -1010,7 +1010,7 @@ void tst_QDoubleSpinBox::task221221() QDoubleSpinBox spin; QTest::keyClick(&spin, Qt::Key_1); spin.show(); - QVERIFY(spin.isVisible()); + QVERIFY(QTest::qWaitForWindowExposed(&spin)); QCOMPARE(spin.text(), QLatin1String("1.00")); } @@ -1026,7 +1026,7 @@ void tst_QDoubleSpinBox::task255471_decimalsValidation() spinBox.setMaximum(12); spinBox.show(); - QTRY_VERIFY(spinBox.isVisible()); + QVERIFY(QTest::qWaitForWindowExposed(&spinBox)); spinBox.setFocus(); QTRY_VERIFY(spinBox.hasFocus()); |