summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qcheckbox
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2018-04-26 15:53:08 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2018-04-26 15:53:08 +0000
commitb3ebe8713b28a3bb7dedc0821bed6f6141d67d53 (patch)
tree0d8ce377337a70dd15e825e7b85cbd109c3843af /tests/auto/widgets/widgets/qcheckbox
parent7160df3a15637acbb6548878d3a0afe294e64a6b (diff)
parent866b47916dfcf2823b8fc4df719f1ebf15acef70 (diff)
Merge "Merge remote-tracking branch 'origin/5.11' into dev" into refs/staging/dev
Diffstat (limited to 'tests/auto/widgets/widgets/qcheckbox')
-rw-r--r--tests/auto/widgets/widgets/qcheckbox/tst_qcheckbox.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/widgets/widgets/qcheckbox/tst_qcheckbox.cpp b/tests/auto/widgets/widgets/qcheckbox/tst_qcheckbox.cpp
index c9699bfb81..0cbab5e17c 100644
--- a/tests/auto/widgets/widgets/qcheckbox/tst_qcheckbox.cpp
+++ b/tests/auto/widgets/widgets/qcheckbox/tst_qcheckbox.cpp
@@ -83,6 +83,7 @@ void tst_QCheckBox::initTestCase()
testWidget->setObjectName("testObject");
testWidget->resize( 200, 200 );
testWidget->show();
+ QVERIFY(QTest::qWaitForWindowActive(testWidget));
}
void tst_QCheckBox::cleanupTestCase()
@@ -240,13 +241,11 @@ void tst_QCheckBox::pressed()
QVERIFY( !testWidget->isChecked() );
QTest::keyPress( testWidget, Qt::Key_Space );
- QTest::qWait(100);
QVERIFY( press_count == 1 );
QVERIFY( release_count == 0 );
QVERIFY( !testWidget->isChecked() );
QTest::keyRelease( testWidget, Qt::Key_Space );
- QTest::qWait(100);
QVERIFY( press_count == 1 );
QVERIFY( release_count == 1 );
QVERIFY( testWidget->isChecked() );