summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2013-09-17 16:53:38 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-17 18:55:50 +0200
commit992a1b260550ff6e2ad524f63ad53d7edbbcfccd (patch)
tree87cd2312b5443f4c2646453d5c34bf7525e86c31 /tests
parentef644626968703ae92ed0264fef8078c849a61fd (diff)
Stabilized QPainterVideoSurface auto-test.
Change-Id: Idfd6f8396dce223be1c73ad56c6f7f66ca9d5d25 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp12
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;