summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-12-06 12:40:27 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-12-06 12:43:41 +1000
commitf982ee4b3236cfeeb7aa567fd6d812316d7c2092 (patch)
tree5f8cca93d5189117f71e9e635bac358d1a085611 /tests
parent06249fd8be863a24df96a27f88bd4ed38c572ca8 (diff)
Load test cases out of qrc resources
Diffstat (limited to 'tests')
-rw-r--r--tests/qmlexample/qmlexample.pro2
-rw-r--r--tests/qmlexample/qmlexample.qrc6
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/qmlexample/qmlexample.pro b/tests/qmlexample/qmlexample.pro
index de4f557..502d16a 100644
--- a/tests/qmlexample/qmlexample.pro
+++ b/tests/qmlexample/qmlexample.pro
@@ -2,5 +2,5 @@ TEMPLATE=app
TARGET=tst_qmlexample
CONFIG += warn_on testcase
SOURCES += tst_qmlexample.cpp
-DEFINES += QTEST_QUICK_SOURCE_DIR=\"\\\"$$PWD\\\"\"
+RESOURCES += qmlexample.qrc
include(../../src/quicktestlib/quicktestlib_dep.pri)
diff --git a/tests/qmlexample/qmlexample.qrc b/tests/qmlexample/qmlexample.qrc
new file mode 100644
index 0000000..ee7c380
--- /dev/null
+++ b/tests/qmlexample/qmlexample.qrc
@@ -0,0 +1,6 @@
+<!DOCTYPE RCC><RCC version="1.0">
+<qresource>
+ <file>tst_basic.qml</file>
+ <file>tst_item.qml</file>
+</qresource>
+</RCC>