aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qsgflickable/tst_qsgflickable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qsgflickable/tst_qsgflickable.cpp')
-rw-r--r--tests/auto/declarative/qsgflickable/tst_qsgflickable.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/declarative/qsgflickable/tst_qsgflickable.cpp b/tests/auto/declarative/qsgflickable/tst_qsgflickable.cpp
index 2cc6b3eac2..1892350058 100644
--- a/tests/auto/declarative/qsgflickable/tst_qsgflickable.cpp
+++ b/tests/auto/declarative/qsgflickable/tst_qsgflickable.cpp
@@ -47,6 +47,7 @@
#include <private/qdeclarativevaluetype_p.h>
#include <math.h>
#include "../../../shared/util.h"
+#include <QtOpenGL/QGLShaderProgram>
#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
@@ -60,6 +61,9 @@ public:
tst_qsgflickable();
private slots:
+ void initTestCase();
+ void cleanupTestCase();
+
void create();
void horizontalViewportSize();
void verticalViewportSize();
@@ -86,6 +90,18 @@ tst_qsgflickable::tst_qsgflickable()
{
}
+void tst_qsgflickable::initTestCase()
+{
+ QSGView canvas;
+ if (!QGLShaderProgram::hasOpenGLShaderPrograms(canvas.context()))
+ QSKIP("Flickable item needs OpenGL 2.0", SkipAll);
+}
+
+void tst_qsgflickable::cleanupTestCase()
+{
+
+}
+
void tst_qsgflickable::create()
{
QDeclarativeEngine engine;