Properly check for widget's visibility in doublespinbox autotest
Change-Id: If9e08ab5c84090729537e2a060257564c62fda9a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
parent
9b710bc13b
commit
deac55becd
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user