#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
tst_qsgflickable();
private slots:
+ void initTestCase();
+ void cleanupTestCase();
+
void create();
void horizontalViewportSize();
void verticalViewportSize();
{
}
+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;
#include <QFontMetrics>
#include <private/qsgrectangle_p.h>
#include <math.h>
+#include <QtOpenGL/QGLShaderProgram>
+
#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
tst_qsgflipable();
private slots:
+ void initTestCase();
+ void cleanupTestCase();
void create();
void checkFrontAndBack();
void setFrontAndBack();
tst_qsgflipable::tst_qsgflipable()
{
}
+void tst_qsgflipable::initTestCase()
+{
+ QSGView canvas;
+ if (!QGLShaderProgram::hasOpenGLShaderPrograms(canvas.context()))
+ QSKIP("Flipable item needs OpenGL 2.0", SkipAll);
+}
+
+void tst_qsgflipable::cleanupTestCase()
+{
+
+}
void tst_qsgflipable::create()
{
#include <private/qsgtextedit_p.h>
#include <private/qsgtext_p.h>
#include <QtDeclarative/private/qsgfocusscope_p.h>
+#include <QtOpenGL/QGLShaderProgram>
#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
T *findItem(QSGItem *parent, const QString &id);
private slots:
+ void initTestCase();
+ void cleanupTestCase();
void basic();
void nested();
void noFocus();
void qtBug13380();
void forceActiveFocus();
};
+void tst_qsgfocusscope::initTestCase()
+{
+ QSGView canvas;
+ if (!QGLShaderProgram::hasOpenGLShaderPrograms(canvas.context()))
+ QSKIP("FocusScope item needs OpenGL 2.0", SkipAll);
+}
+
+void tst_qsgfocusscope::cleanupTestCase()
+{
+
+}
/*
Find an item with the specified id.
#include <QtDeclarative/private/qsgtext_p.h>
#include <QtDeclarative/private/qdeclarativelistmodel_p.h>
#include "../../../shared/util.h"
+#include <QtOpenGL/QGLShaderProgram>
#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
tst_QSGGridView();
private slots:
+ void initTestCase();
+ void cleanupTestCase();
void items();
void changed();
void inserted();
QList<T*> findItems(QSGItem *parent, const QString &objectName);
void dumpTree(QSGItem *parent, int depth = 0);
};
+void tst_QSGGridView::initTestCase()
+{
+ QSGView canvas;
+ if (!QGLShaderProgram::hasOpenGLShaderPrograms(canvas.context()))
+ QSKIP("QSGGridView needs OpenGL 2.0", SkipAll);
+}
+void tst_QSGGridView::cleanupTestCase()
+{
+
+}
class TestModel : public QAbstractListModel
{
public:
#include <QtDeclarative/private/qlistmodelinterface_p.h>
#include "../../../shared/util.h"
#include "incrementalmodel.h"
+#include <QtOpenGL/QGLShaderProgram>
#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
tst_QSGListView();
private slots:
+ void initTestCase();
+ void cleanupTestCase();
// Test both QListModelInterface and QAbstractItemModel model types
void qListModelInterface_items();
void qAbstractItemModel_items();
void dumpTree(QSGItem *parent, int depth = 0);
};
+void tst_QSGListView::initTestCase()
+{
+ QSGView canvas;
+ if (!QGLShaderProgram::hasOpenGLShaderPrograms(canvas.context()))
+ QSKIP("QSGListView needs OpenGL 2.0", SkipAll);
+}
+
+void tst_QSGListView::cleanupTestCase()
+{
+
+}
class TestObject : public QObject
{
Q_OBJECT
#include <QtDeclarative/qsgview.h>
#include <QtDeclarative/qdeclarativecontext.h>
#include <QtDeclarative/qdeclarativeengine.h>
+#include <QtOpenGL/QGLShaderProgram>
#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
{
Q_OBJECT
private slots:
+ void initTestCase();
+ void cleanupTestCase();
void dragProperties();
void resetDrag();
void dragging();
QSGView *createView();
};
+void tst_QSGMouseArea::initTestCase()
+{
+ QSGView canvas;
+ if (!QGLShaderProgram::hasOpenGLShaderPrograms(canvas.context()))
+ QSKIP("MouseArea needs OpenGL 2.0", SkipAll);
+}
+
+void tst_QSGMouseArea::cleanupTestCase()
+{
+
+}
+
void tst_QSGMouseArea::dragProperties()
{
QSGView *canvas = createView();
#include <QStringListModel>
#include <QStandardItemModel>
#include <QFile>
+#include <QtOpenGL/QGLShaderProgram>
#include "../../../shared/util.h"
tst_QSGPathView();
private slots:
+ void initTestCase();
+ void cleanupTestCase();
void initValues();
void items();
void dataModel();
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
#include <private/qsgrectangle_p.h>
#include <QtDeclarative/qsgview.h>
#include <QtDeclarative/qdeclarativecontext.h>
+#include <QtOpenGL/QGLShaderProgram>
#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
{
Q_OBJECT
private slots:
+ void initTestCase();
+ void cleanupTestCase();
void pinchProperties();
void scale();
void pan();
private:
QSGView *createView();
};
+void tst_QSGPinchArea::initTestCase()
+{
+ QSGView canvas;
+ if (!QGLShaderProgram::hasOpenGLShaderPrograms(canvas.context()))
+ QSKIP("PinchArea needs OpenGL 2.0", SkipAll);
+}
+void tst_QSGPinchArea::cleanupTestCase()
+{
+
+}
void tst_QSGPinchArea::pinchProperties()
{
QSGView *canvas = createView();
#include "../../../shared/util.h"
#include "testhttpserver.h"
+#include <QtOpenGL/QGLShaderProgram>
#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
tst_qsgtext();
private slots:
+ void initTestCase();
+ void cleanupTestCase();
void text();
void width();
void wrap();
QSGView *createView(const QString &filename);
};
+void tst_qsgtext::initTestCase()
+{
+ QSGView canvas;
+ if (!QGLShaderProgram::hasOpenGLShaderPrograms(canvas.context()))
+ QSKIP("Text item needs OpenGL 2.0", SkipAll);
+}
+void tst_qsgtext::cleanupTestCase()
+{
+
+}
tst_qsgtext::tst_qsgtext()
{
standard << "the quick brown fox jumped over the lazy dog"
#include <QMimeData>
#include <private/qapplication_p.h>
#include <private/qtextcontrol_p.h>
+#include <QtOpenGL/QGLShaderProgram>
#ifdef Q_WS_MAC
#include <Carbon/Carbon.h>
tst_qsgtextedit();
private slots:
+ void initTestCase();
+ void cleanupTestCase();
void text();
void width();
void wrap();
QDeclarativeEngine engine;
};
+void tst_qsgtextedit::initTestCase()
+{
+ QSGView canvas;
+ if (!QGLShaderProgram::hasOpenGLShaderPrograms(canvas.context()))
+ QSKIP("TextEdit item needs OpenGL 2.0", SkipAll);
+}
+void tst_qsgtextedit::cleanupTestCase()
+{
+
+}
tst_qsgtextedit::tst_qsgtextedit()
{
standard << "the quick brown fox jumped over the lazy dog"
#include <QStyle>
#include <QInputContext>
#include <private/qapplication_p.h>
+#include <QtOpenGL/QGLShaderProgram>
#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
tst_qsgtextinput();
private slots:
-
+ void initTestCase();
+ void cleanupTestCase();
void text();
void width();
void font();
QStringList standard;
QStringList colorStrings;
};
+void tst_qsgtextinput::initTestCase()
+{
+ QSGView canvas;
+ if (!QGLShaderProgram::hasOpenGLShaderPrograms(canvas.context()))
+ QSKIP("TextInput item needs OpenGL 2.0", SkipAll);
+}
+void tst_qsgtextinput::cleanupTestCase()
+{
+
+}
tst_qsgtextinput::tst_qsgtextinput()
{
standard << "the quick brown fox jumped over the lazy dog"
#include <private/qsgvisualitemmodel_p.h>
#include <private/qdeclarativevaluetype_p.h>
#include <math.h>
+#include <QtOpenGL/QGLShaderProgram>
#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
tst_qsgvisualdatamodel();
private slots:
+ void initTestCase();
+ void cleanupTestCase();
void rootIndex();
void updateLayout();
void childChanged();
template<typename T>
T *findItem(QSGItem *parent, const QString &objectName, int index);
};
+void tst_qsgvisualdatamodel::initTestCase()
+{
+ QSGView canvas;
+ if (!QGLShaderProgram::hasOpenGLShaderPrograms(canvas.context()))
+ QSKIP("VisualDatamodel item needs OpenGL 2.0", SkipAll);
+}
+void tst_qsgvisualdatamodel::cleanupTestCase()
+{
+
+}
class DataObject : public QObject
{
Q_OBJECT