From 992a1b260550ff6e2ad524f63ad53d7edbbcfccd Mon Sep 17 00:00:00 2001 From: Yoann Lopes Date: Tue, 17 Sep 2013 16:53:38 +0200 Subject: Stabilized QPainterVideoSurface auto-test. Change-Id: Idfd6f8396dce223be1c73ad56c6f7f66ca9d5d25 Reviewed-by: Sergio Ahumada --- .../unit/qpaintervideosurface/tst_qpaintervideosurface.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') 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; -- cgit v1.2.3