aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qsgpathview/tst_qsgpathview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qsgpathview/tst_qsgpathview.cpp')
-rw-r--r--tests/auto/declarative/qsgpathview/tst_qsgpathview.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/declarative/qsgpathview/tst_qsgpathview.cpp b/tests/auto/declarative/qsgpathview/tst_qsgpathview.cpp
index df8057c4c4..5b95acec68 100644
--- a/tests/auto/declarative/qsgpathview/tst_qsgpathview.cpp
+++ b/tests/auto/declarative/qsgpathview/tst_qsgpathview.cpp
@@ -55,6 +55,7 @@
#include <QStringListModel>
#include <QStandardItemModel>
#include <QFile>
+#include <QtOpenGL/QGLShaderProgram>
#include "../../../shared/util.h"
@@ -89,6 +90,8 @@ public:
tst_QSGPathView();
private slots:
+ void initTestCase();
+ void cleanupTestCase();
void initValues();
void items();
void dataModel();
@@ -121,6 +124,18 @@ private:
QList<T*> findItems(QSGItem *parent, const QString &objectName);
};
+void tst_QSGPathView::initTestCase()
+{
+ QSGView canvas;
+ if (!QGLShaderProgram::hasOpenGLShaderPrograms(canvas.context()))
+ QSKIP("PathView needs OpenGL 2.0", SkipAll);
+}
+
+void tst_QSGPathView::cleanupTestCase()
+{
+
+}
+
class TestObject : public QObject
{
Q_OBJECT