diff options
Diffstat (limited to 'tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp')
-rw-r--r-- | tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp b/tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp index 7671c7ec6..2f6152712 100644 --- a/tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp +++ b/tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp @@ -569,6 +569,8 @@ void tst_QPainterVideoSurface::shaderType() { QPainterVideoSurface surface; QGLWidget widget; + widget.show(); + QTest::qWaitForWindowShown(&widget); widget.makeCurrent(); QCOMPARE(surface.shaderType(), QPainterVideoSurface::NoShaders); @@ -659,6 +661,8 @@ void tst_QPainterVideoSurface::shaderTypeStarted() QFETCH(QPainterVideoSurface::ShaderType, shaderType); QGLWidget widget; + widget.show(); + QTest::qWaitForWindowShown(&widget); widget.makeCurrent(); QPainterVideoSurface surface; @@ -902,6 +906,8 @@ void tst_QPainterVideoSurface::shaderSupportedFormat() QFETCH(bool, supportedFormat); QGLWidget widget; + widget.show(); + QTest::qWaitForWindowShown(&widget); widget.makeCurrent(); QPainterVideoSurface surface; @@ -1017,6 +1023,8 @@ void tst_QPainterVideoSurface::shaderPresent() QFETCH(int, bytesPerLineB); QGLWidget widget; + widget.show(); + QTest::qWaitForWindowShown(&widget); widget.makeCurrent(); QPainterVideoSurface surface; @@ -1146,6 +1154,8 @@ void tst_QPainterVideoSurface::shaderPresentOpaqueFrame() QFETCH(QPainterVideoSurface::ShaderType, shaderType); QGLWidget widget; + widget.show(); + QTest::qWaitForWindowShown(&widget); widget.makeCurrent(); QPainterVideoSurface surface; @@ -1193,6 +1203,8 @@ void tst_QPainterVideoSurface::shaderPresentGLFrame() QFETCH(QPainterVideoSurface::ShaderType, shaderType); QGLWidget widget; + widget.show(); + QTest::qWaitForWindowShown(&widget); widget.makeCurrent(); QPainterVideoSurface surface; |