#include <QtDeclarative/qdeclarativeengine.h>
-#include "../../../../shared/util.h"
#include "../shared/debugutil_p.h"
#define PORT 13770
#include <private/qdeclarativedebugclient_p.h>
#include <private/qdeclarativedebugservice_p.h>
-#include "../../../../shared/util.h"
#include "../../shared/util.h"
#include "../shared/debugutil_p.h"
#include <private/qdeclarativemetatype_p.h>
#include <private/qdeclarativeproperty_p.h>
-#include "../../../../shared/util.h"
#include "../shared/debugutil_p.h"
Q_DECLARE_METATYPE(QDeclarativeDebugWatch::State)
** $QT_END_LICENSE$
**
****************************************************************************/
-#include <qtest.h>
+#include <QtTest/QtTest>
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtDeclarative/qsgview.h>
#include <math.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
class tst_qdeclarativeanimations : public QObject
{
****************************************************************************/
#include <qtest.h>
-#include "../../../shared/util.h"
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qsgitem.h>
** $QT_END_LICENSE$
**
****************************************************************************/
-#include <qtest.h>
+#include <QtTest/QtTest>
#include <qsignalspy.h>
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativecomponent.h>
#include <private/qdeclarativeanimation_p.h>
#include <private/qsgitem_p.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
class tst_qdeclarativebehaviors : public QObject
{
#include <private/qdeclarativebind_p.h>
#include <private/qsgrectangle_p.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
class tst_qdeclarativebinding : public QObject
{
#include <QtDeclarative/qdeclarativeincubator.h>
#include <qcolor.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
class MyIC : public QObject, public QDeclarativeIncubationController
{
#include <private/qdeclarativeconnections_p.h>
#include <private/qsgitem_p.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
#include <QtDeclarative/qdeclarativescriptstring.h>
class tst_qdeclarativeconnection : public QObject
** $QT_END_LICENSE$
**
****************************************************************************/
-#include <qtest.h>
+#include <QtTest/QtTest>
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativeexpression.h>
#include "testtypes.h"
#include "testhttpserver.h"
#include "../shared/util.h"
-#include "../../../shared/util.h"
/*
This test covers evaluation of ECMAScript expressions and bindings from within
****************************************************************************/
#include <qtest.h>
#include <QtTest/QSignalSpy>
-#include "../../../shared/util.h"
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtCore/qdir.h>
#include <QtDeclarative/qdeclarativecontext.h>
#include <QtDeclarative/private/qdeclarativefontloader_p.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
#include "../../declarative/shared/testhttpserver.h"
#define SERVER_PORT 14448
#include <private/qsgimage_p.h>
#include <QImageReader>
#include <QWaitCondition>
-#include "../../../shared/util.h"
Q_DECLARE_METATYPE(QDeclarativeImageProvider*);
#include <private/qdeclarativeglobal_p.h>
#include "testtypes.h"
-
-#include "../../../shared/util.h"
#include "testhttpserver.h"
DEFINE_BOOL_CONFIG_OPTION(qmlCheckTypes, QML_CHECK_TYPES)
#include <QtCore/qtranslator.h>
#include <QSignalSpy>
-#include "../../../shared/util.h"
-
Q_DECLARE_METATYPE(QList<int>)
Q_DECLARE_METATYPE(QList<QVariantHash>)
#include <QDebug>
#include "../shared/testhttpserver.h"
-#include "../../../shared/util.h"
#include "../shared/util.h"
#define SERVER_ADDR "http://127.0.0.1:14450"
#include <QtDeclarative/private/qdeclarativepath_p.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
class tst_QDeclarativePath : public QObject
{
#include <QtDeclarative/qdeclarativeimageprovider.h>
#include <QNetworkReply>
#include "testhttpserver.h"
-#include "../../../shared/util.h"
#ifndef QT_NO_CONCURRENT
#include <qtconcurrentrun.h>
#include <private/qsgrectangle_p.h>
#include <private/qdeclarativevaluetype_p.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
class tst_qdeclarativesmoothedanimation : public QObject
{
#include <private/qdeclarativespringanimation_p.h>
#include <private/qdeclarativevaluetype_p.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
class tst_qdeclarativespringanimation : public QObject
{
**
****************************************************************************/
#include <qtest.h>
-#include "../../../shared/util.h"
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativecomponent.h>
#include <private/qsgtext_p.h>
#include <private/qsgitem_p.h>
#include <private/qdeclarativeproperty_p.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
class MyAttached : public QObject
{
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtDeclarative/private/qdeclarativesystempalette_p.h>
#include <qpalette.h>
-#include "../../../shared/util.h"
class tst_qdeclarativesystempalette : public QObject
{
#include <private/qdeclarativeworkerscript_p.h>
#include <private/qdeclarativeengine_p.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
inline QUrl TEST_FILE(const QString &filename)
{
#include <QNetworkCookieJar>
#include "testhttpserver.h"
#include "../shared/util.h"
-#include "../../../shared/util.h"
#define SERVER_PORT 14445
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativecomponent.h>
#include <private/qdeclarativexmllistmodel_p.h>
-#include "../../../shared/util.h"
typedef QPair<int, int> QDeclarativeXmlListRange;
typedef QList<QVariantList> QDeclarativeXmlModelData;
#include "../shared/testhttpserver.h"
#include "../shared/util.h"
-#include "../../../shared/util.h"
class tst_qsganimatedimage : public QObject
{
#include "../shared/testhttpserver.h"
#include "../shared/util.h"
-#include "../../../shared/util.h"
#define SERVER_PORT 14446
#define SERVER_ADDR "http://127.0.0.1:14446"
#include <QtDeclarative/QSGItem>
#include <QtDeclarative/QSGCanvas>
#include <QtDeclarative/private/qsgrectangle_p.h>
-#include "../../../shared/util.h"
#include <QtGui/QWindowSystemInterface>
struct TouchEventData {
#include <QtDeclarative/qdeclarativecontext.h>
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativeexpression.h>
-#include "../../../shared/util.h"
template <typename T> static T evaluate(QObject *scope, const QString &expression)
{
#include <QtDeclarative/qdeclarativecontext.h>
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativeexpression.h>
-#include "../../../shared/util.h"
#include <QtGui/qwindowsysteminterface_qpa.h>
#include <private/qdeclarativevaluetype_p.h>
#include <math.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
#include <QtOpenGL/QGLShaderProgram>
class tst_qsgflickable : public QObject
#include <private/qsgtext_p.h>
#include <QtDeclarative/private/qsgfocusscope_p.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
class tst_qsgfocusscope : public QObject
{
#include <QtDeclarative/private/qsgtext_p.h>
#include <QtDeclarative/private/qdeclarativelistmodel_p.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
#include <QtGui/qguiapplication.h>
Q_DECLARE_METATYPE(Qt::LayoutDirection)
#include <QtGui/QImageReader>
#include "../shared/util.h"
-#include "../../../shared/util.h"
#include "../shared/testhttpserver.h"
#define SERVER_PORT 14451
#include "qsgcanvas.h"
#include <QtWidgets/QGraphicsSceneMouseEvent>
#include "private/qsgfocusscope_p.h"
-#include "../../../shared/util.h"
#include <QDebug>
#include <QTimer>
#include <private/qsgrectangle_p.h>
#include <private/qsgitem_p.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
class tst_QSGItem : public QObject
{
#include <QtDeclarative/private/qlistmodelinterface_p.h>
#include <QtDeclarative/private/qdeclarativechangeset_p.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
#include "incrementalmodel.h"
#include <math.h>
#include <private/qsgloader_p.h>
#include "testhttpserver.h"
#include "../shared/util.h"
-#include "../../../shared/util.h"
#define SERVER_PORT 14450
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtOpenGL/QGLShaderProgram>
#include "../shared/util.h"
-#include "../../../shared/util.h"
//#define OLDWAY
#include <QFile>
#include "../shared/util.h"
-#include "../../../shared/util.h"
static void initStandardTreeModel(QStandardItemModel *model)
{
#include <private/qsgitem_p.h>
#include <qdeclarativeexpression.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
class tst_qsgpositioners : public QObject
{
#include <limits.h>
#include <QtGui/QMouseEvent>
#include "../shared/util.h"
-#include "../../../shared/util.h"
#include "testhttpserver.h"
DEFINE_BOOL_CONFIG_OPTION(qmlDisableDistanceField, QML_DISABLE_DISTANCEFIELD)
****************************************************************************/
#include <qtest.h>
#include <QtTest/QSignalSpy>
-#include "../../../shared/util.h"
#include "../shared/testhttpserver.h"
#include <math.h>
#include <QFile>
#include <qtest.h>
#include <QtTest/QSignalSpy>
#include "../shared/util.h"
-#include "../../../shared/util.h"
#include <QtDeclarative/qdeclarativeengine.h>
#include <QFile>
#include <QtDeclarative/qsgview.h>
#include <QtDeclarative/qsgview.h>
#include <QtDeclarative/qsgitem.h>
#include "../shared/util.h"
-#include "../../../shared/util.h"
#include <QtGui/QWindow>
#include <QtCore/QDebug>
**
****************************************************************************/
#include "../shared/util.h"
-#include "../../../shared/util.h"
#include <qtest.h>
#include <QtTest/QSignalSpy>
#include <QStandardItemModel>
#include <QtTest/QtTest>
#include "../shared/particlestestsshared.h"
#include <private/qsgparticlesystem_p.h>
-#include "../../../shared/util.h"
#include <private/qabstractanimation_p.h>
class tst_qsgage : public QObject
#include <QtDeclarative/qdeclarativecontext.h>
#include "../../declarative/shared/testhttpserver.h"
-#include "../../../shared/util.h"
class tst_qdeclarativeanimatedimage : public QObject
{
#include <QVariantAnimation>
#include <QEasingCurve>
-#include "../../../shared/util.h"
-
class tst_qdeclarativeanimations : public QObject
{
Q_OBJECT
****************************************************************************/
#include <qtest.h>
-#include "../../../shared/util.h"
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtQuick1/qdeclarativeitem.h>
#include <QtQuick1/private/qdeclarativebehavior_p.h>
#include <QtQuick1/private/qdeclarativeanimation_p.h>
#include <QtQuick1/private/qdeclarativeitem_p.h>
-#include "../../../shared/util.h"
class tst_qdeclarativebehaviors : public QObject
{
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtQuick1/private/qdeclarativebind_p.h>
#include <QtQuick1/private/qdeclarativerectangle_p.h>
-#include "../../../shared/util.h"
class tst_qdeclarativebinding : public QObject
{
#include <QtDeclarative/qdeclarativecontext.h>
#include "../../declarative/shared/testhttpserver.h"
-#include "../../../shared/util.h"
#define SERVER_PORT 14446
#define SERVER_ADDR "http://127.0.0.1:14446"
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtQuick1/private/qdeclarativeconnections_p.h>
#include <QtQuick1/private/qdeclarativeitem_p.h>
-#include "../../../shared/util.h"
#include <QtDeclarative/qdeclarativescriptstring.h>
class tst_qdeclarativeconnection : public QObject
#include <private/qdeclarativevaluetype_p.h>
#include <QtWidgets/qgraphicswidget.h>
#include <math.h>
-#include "../../../shared/util.h"
class tst_qdeclarativeflickable : public QObject
{
#include <QtQuick1/private/qdeclarativetextedit_p.h>
#include <QtQuick1/private/qdeclarativetext_p.h>
#include <QtQuick1/private/qdeclarativefocusscope_p.h>
-#include "../../../shared/util.h"
class tst_qdeclarativefocusscope : public QObject
{
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtDeclarative/qdeclarativecontext.h>
#include <QtQuick1/private/qdeclarativefontloader_p.h>
-#include "../../../shared/util.h"
#include "../../declarative/shared/testhttpserver.h"
#define SERVER_PORT 14448
#include <QtQuick1/private/qdeclarativeitem_p.h>
#include <QtQuick1/private/qdeclarativegridview_p.h>
#include <QtQuick1/private/qdeclarativetext_p.h>
-#include "../../../shared/util.h"
class tst_QDeclarative1GridView : public QObject
{
#include <QtDeclarative/qdeclarativeexpression.h>
#include <QtTest/QSignalSpy>
-#include "../../../shared/util.h"
#include "../../declarative/shared/testhttpserver.h"
#define SERVER_PORT 14451
#include <QtQuick1/private/qdeclarativeimage_p.h>
#include <QImageReader>
#include <QWaitCondition>
-#include "../../../shared/util.h"
Q_DECLARE_METATYPE(QDeclarativeImageProvider*);
#include <QtQuick1/qdeclarativeview.h>
#include <QtQuick1/private/qdeclarativerectangle_p.h>
#include <QtQuick1/private/qdeclarativeitem_p.h>
-#include "../../../shared/util.h"
class tst_QDeclarativeItem : public QObject
{
#include <qgraphicsscene.h>
#include <qgraphicswidget.h>
#include <qgraphicslinearlayout.h>
-#include "../../../shared/util.h"
class tst_qdeclarativelayoutitem : public QObject
{
#include <QtCore/qtranslator.h>
#include <QSignalSpy>
-#include "../../../shared/util.h"
-
Q_DECLARE_METATYPE(QList<int>)
Q_DECLARE_METATYPE(QList<QVariantHash>)
#include <QtQuick1/private/qdeclarativetext_p.h>
#include <QtQuick1/private/qdeclarativevisualitemmodel_p.h>
#include <QtDeclarative/private/qlistmodelinterface_p.h>
-#include "../../../shared/util.h"
#include "incrementalmodel.h"
class tst_QDeclarative1ListView : public QObject
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtQuick1/private/qdeclarativeloader_p.h>
#include "testhttpserver.h"
-#include "../../../shared/util.h"
#define SERVER_PORT 14450
#include <QStandardItemModel>
#include <QFile>
-#include "../../../shared/util.h"
-
static void initStandardTreeModel(QStandardItemModel *model)
{
QStandardItem *item;
#include <QtQuick1/private/qdeclarativeitem_p.h>
#include <qdeclarativeexpression.h>
#include <QtWidgets/qgraphicswidget.h>
-#include "../../../shared/util.h"
class tst_QDeclarativePositioners : public QObject
{
#include <QtQuick1/private/qdeclarativesmoothedanimation_p.h>
#include <QtQuick1/private/qdeclarativerectangle_p.h>
#include <private/qdeclarativevaluetype_p.h>
-#include "../../../shared/util.h"
class tst_qdeclarativesmoothedanimation : public QObject
{
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtQuick1/private/qdeclarativespringanimation_p.h>
#include <private/qdeclarativevaluetype_p.h>
-#include "../../../shared/util.h"
class tst_qdeclarativespringanimation : public QObject
{
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtQuick1/private/qdeclarativesystempalette_p.h>
#include <qpalette.h>
-#include "../../../shared/util.h"
class tst_qdeclarativesystempalette : public QObject
{
#include <QtWidgets/5.0.0/QtWidgets/private/qapplication_p.h>
#include <limits.h>
-#include "../../../shared/util.h"
#include "testhttpserver.h"
class tst_qdeclarativetext : public QObject
****************************************************************************/
#include <qtest.h>
#include <QtTest/QSignalSpy>
-#include "../../../shared/util.h"
#include "../../declarative/shared/testhttpserver.h"
#include <math.h>
#include <QFile>
****************************************************************************/
#include <qtest.h>
#include <QtTest/QSignalSpy>
-#include "../../../shared/util.h"
#include <QtDeclarative/qdeclarativeengine.h>
#include <QFile>
#include <QtQuick1/qdeclarativeview.h>
#include <QtQuick1/qdeclarativeview.h>
#include <QtQuick1/qdeclarativeitem.h>
#include <QtWidgets/qgraphicswidget.h>
-#include "../../../shared/util.h"
class tst_QDeclarativeView : public QObject
{
#include <QtDeclarative/qdeclarativecontext.h>
#include <QtWidgets/qmenubar.h>
#include <QSignalSpy>
-#include "../../../shared/util.h"
#include "qmlruntime.h"
#include "deviceorientation.h"
-#include "../../../shared/util.h"
#if defined(Q_OS_MAC) || defined(Q_WS_MAEMO_5)
# define MENUBAR_HEIGHT(mw) 0
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtQuick1/private/qdeclarativexmllistmodel_p.h>
-#include "../../../shared/util.h"
typedef QPair<int, int> QDeclarativeXmlListRange;
typedef QList<QVariantList> QDeclarativeXmlModelData;
+++ /dev/null
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-// Functions and macros that really need to be in QTestLib
-
-// Will try to wait for the condition while allowing event processing
-#define QTRY_VERIFY(__expr) \
- do { \
- const int __step = 50; \
- const int __timeout = 5000; \
- if (!(__expr)) { \
- QTest::qWait(0); \
- } \
- for (int __i = 0; __i < __timeout && !(__expr); __i+=__step) { \
- QTest::qWait(__step); \
- } \
- QVERIFY(__expr); \
- } while(0)
-
-// Will try to wait for the condition while allowing event processing
-#define QTRY_COMPARE(__expr, __expected) \
- do { \
- const int __step = 50; \
- const int __timeout = 5000; \
- if ((__expr) != (__expected)) { \
- QTest::qWait(0); \
- } \
- for (int __i = 0; __i < __timeout && ((__expr) != (__expected)); __i+=__step) { \
- QTest::qWait(__step); \
- } \
- QCOMPARE(__expr, __expected); \
- } while(0)
-