Commit 1d0b45b8 authored by Tim Jenssen's avatar Tim Jenssen Committed by Thomas Hartmann

QmlDesigner: fix tests in shadow builds

Change-Id: Iaabe1516a30be520b1b0be0dd5557004312a67ec
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@theqtcompany.com>
parent 12aa1015
......@@ -21,6 +21,8 @@ greaterThan(QT_MAJOR_VERSION, 4) {
}
DEFINES+=QTCREATORDIR=\\\"$$IDE_BUILD_TREE\\\"
DEFINES+=TESTSRCDIR=\\\"$$_PRO_FILE_PWD_\\\"
DEFINES += QTCREATOR_TEST
DEFINES += QMLDESIGNER_TEST
DEFINES += QT_RESTRICTED_CAST_FROM_ASCII
......
......@@ -874,7 +874,7 @@ void tst_TestCore::testRewriterActionCompression()
void tst_TestCore::testRewriterImports()
{
QString fileName = QString(QTCREATORDIR) + "/tests/auto/qml/qmldesigner/data/fx/imports.qml";
QString fileName = QString(TESTSRCDIR) + "/../data/fx/imports.qml";
QFile file(fileName);
QVERIFY(file.open(QIODevice::ReadOnly | QIODevice::Text));
......@@ -1084,7 +1084,7 @@ void tst_TestCore::testRewriterForGradientMagic()
void tst_TestCore::loadSubItems()
{
QFile file(QString(QTCREATORDIR) + "/tests/auto/qml/qmldesigner/data/fx/topitem.qml");
QFile file(QString(TESTSRCDIR) + "/../data/fx/topitem.qml");
QVERIFY(file.open(QIODevice::ReadOnly | QIODevice::Text));
QPlainTextEdit textEdit1;
......@@ -3658,7 +3658,7 @@ void tst_TestCore::testSubComponentManager()
" }\n"
"}");
QString fileName = QString(QTCREATORDIR) + "/tests/auto/qml/qmldesigner/data/fx/usingmybutton.qml";
QString fileName = QString(TESTSRCDIR) + "/../data/fx/usingmybutton.qml";
QFile file(fileName);
QVERIFY(file.open(QIODevice::ReadOnly | QIODevice::Text));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment