#include <QtTest/QtTest>
#include <QtQuick/QQuickView>
class tst_DragHandle: public QObject
{
Q_OBJECT
public:
tst_DragHandle() {}
private Q_SLOTS:
void initTestCase(); // will be called before the first test function is executed
};
void tst_DragHandle::initTestCase()
{
qDebug() << "A";
QQuickView *view = new QQuickView();
view->setSource(QUrl::fromLocalFile(TEST_DIR"/tst_DragHandle.qml"));
view->show();
delete view;
qDebug() << "B";
view = new QQuickView();
view->setSource(QUrl::fromLocalFile(TEST_DIR"/tst_DragHandle.qml"));
view->show();
delete view;
}
QTEST_MAIN(tst_DragHandle)
#include "tst_DragHandle.moc"