diff options
author | Kari Oikarinen <kari.oikarinen@qt.io> | 2018-04-03 13:32:41 +0300 |
---|---|---|
committer | Kari Oikarinen <kari.oikarinen@qt.io> | 2018-04-11 06:05:46 +0000 |
commit | 8c3475c1908068039c10f9d76caf420f1dee66db (patch) | |
tree | 39a00b1fc446acac04b06100b4ac70642f6397bc /tests | |
parent | 95c8f24b71445956651a5d1eade9475dceb16675 (diff) |
tst_QGL: Use qWaitForWindowExposed()
Instead of an unconditional wait.
Change-Id: I360cd665c10c3fd4f936c95ef04957ae1c49c0de
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/opengl/qgl/tst_qgl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/opengl/qgl/tst_qgl.cpp b/tests/auto/opengl/qgl/tst_qgl.cpp index 46e2345c6a..7666bf81e4 100644 --- a/tests/auto/opengl/qgl/tst_qgl.cpp +++ b/tests/auto/opengl/qgl/tst_qgl.cpp @@ -923,8 +923,7 @@ void tst_QGL::partialGLWidgetUpdates() widget.setFixedSize(150, 150); widget.setAutoFillBackground(autoFillBackground); widget.show(); - - QTest::qWait(200); + QVERIFY(QTest::qWaitForWindowExposed(&widget)); if (widget.format().doubleBuffer() != doubleBufferedContext) QSKIP("Platform does not support requested format"); |