summaryrefslogtreecommitdiffstats
path: root/tests/widgets/tests.pri
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-08-07 11:27:50 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-08-20 18:15:34 +0200
commitf95e0645b262ccd7e96a38964145e1580337e76c (patch)
tree61f3797e1e26fc72fac08d0a1cdd5c4c0999f8d6 /tests/widgets/tests.pri
parent63c45a18d37350e5455cf2869832e8b1743712a2 (diff)
Import relevant QtWebKit API tests.
This import the tests as-is, without adding them to the build. Change-Id: I8b8e11a9f62b2a8f2be299347d2621b10fb61f20 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'tests/widgets/tests.pri')
-rw-r--r--tests/widgets/tests.pri22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/widgets/tests.pri b/tests/widgets/tests.pri
new file mode 100644
index 000000000..b48806286
--- /dev/null
+++ b/tests/widgets/tests.pri
@@ -0,0 +1,22 @@
+TEMPLATE = app
+
+VPATH += $$_PRO_FILE_PWD_
+TARGET = tst_$$TARGET
+
+# Load mobilityconfig if Qt Mobility is available
+load(mobilityconfig, true)
+contains(MOBILITY_CONFIG, multimedia) {
+ # This define is used by tests depending on Qt Multimedia
+ DEFINES -= WTF_USE_QT_MULTIMEDIA=0
+ DEFINES += WTF_USE_QT_MULTIMEDIA=1
+}
+
+SOURCES += $${TARGET}.cpp
+INCLUDEPATH += \
+ $$PWD \
+ $$PWD/../Api
+
+QT += testlib network webkitwidgets widgets
+
+# This define is used by some tests to look up resources in the source tree
+DEFINES += TESTS_SOURCE_DIR=\\\"$$PWD/\\\"