Stabilized QPainterVideoSurface auto-test.
Change-Id: Idfd6f8396dce223be1c73ad56c6f7f66ca9d5d25 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
ef64462696
commit
992a1b2605
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user