summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-08-01 13:56:22 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-01 15:03:23 +0200
commit5188ded26930645e4856c59561225040033e3187 (patch)
treed6ff7f464571e6e9bac9d044093221d64c672cdd /tests
parent3dc36ccf4ebaec07845263a2fbc90519604d333d (diff)
downloadqtscript-5188ded26930645e4856c59561225040033e3187.tar.gz
Set the Qt API level to compatibility mode in all tests.
Qt 5.0 beta requires changing the default to the 5.0 API, disabling the deprecated code. However, tests should test (and often do) the compatibility API too, so turn it back on. Task-number: QTBUG-25053 Change-Id: I432719e9520662c9dda5eaa580f0b508de4120fe Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/headersclean/headersclean.pro1
-rw-r--r--tests/auto/qscriptable/qscriptable.pro1
-rw-r--r--tests/auto/qscriptclass/qscriptclass.pro1
-rw-r--r--tests/auto/qscriptcontext/qscriptcontext.pro1
-rw-r--r--tests/auto/qscriptcontextinfo/qscriptcontextinfo.pro1
-rw-r--r--tests/auto/qscriptengine/qscriptengine.pro1
-rw-r--r--tests/auto/qscriptengineagent/qscriptengineagent.pro1
-rw-r--r--tests/auto/qscriptenginedebugger/qscriptenginedebugger.pro1
-rw-r--r--tests/auto/qscriptextensionplugin/simpleplugin/simpleplugin.pro1
-rw-r--r--tests/auto/qscriptextensionplugin/staticplugin/staticplugin.pro1
-rw-r--r--tests/auto/qscriptextensionplugin/test/test.pro1
-rw-r--r--tests/auto/qscriptextqobject/qscriptextqobject.pro1
-rw-r--r--tests/auto/qscriptjstestsuite/qscriptjstestsuite.pro1
-rw-r--r--tests/auto/qscriptstring/qscriptstring.pro1
-rw-r--r--tests/auto/qscriptv8testsuite/qscriptv8testsuite.pro1
-rw-r--r--tests/auto/qscriptvalue/qscriptvalue.pro1
-rw-r--r--tests/auto/qscriptvaluegenerated/qscriptvaluegenerated.pro1
-rw-r--r--tests/auto/qscriptvalueiterator/qscriptvalueiterator.pro1
-rw-r--r--tests/auto/qtipc/lackey/lackey.pro1
-rw-r--r--tests/auto/qtipc/qsharedmemory/qsystemlock/qsystemlock.pro1
-rw-r--r--tests/auto/qtipc/qsharedmemory/test/test.pro1
-rw-r--r--tests/auto/qtipc/qsystemsemaphore/qsystemsemaphore.pro1
-rw-r--r--tests/benchmarks/script/context2d/context2d.pro1
-rw-r--r--tests/benchmarks/script/qscriptclass/qscriptclass.pro1
-rw-r--r--tests/benchmarks/script/qscriptclass_bytearray/qscriptclass_bytearray.pro1
-rw-r--r--tests/benchmarks/script/qscriptengine/qscriptengine.pro1
-rw-r--r--tests/benchmarks/script/qscriptqobject/qscriptqobject.pro1
-rw-r--r--tests/benchmarks/script/qscriptvalue/qscriptvalue.pro1
-rw-r--r--tests/benchmarks/script/qscriptvalueiterator/qscriptvalueiterator.pro1
-rw-r--r--tests/benchmarks/script/sunspider/sunspider.pro1
-rw-r--r--tests/benchmarks/script/v8/v8.pro1
31 files changed, 31 insertions, 0 deletions
diff --git a/tests/auto/headersclean/headersclean.pro b/tests/auto/headersclean/headersclean.pro
index d208f87..77a7645 100644
--- a/tests/auto/headersclean/headersclean.pro
+++ b/tests/auto/headersclean/headersclean.pro
@@ -5,3 +5,4 @@ QT = core testlib
contains(QT_CONFIG,script): QT += script
contains(QT_CONFIG,scripttools): QT += scripttools
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptable/qscriptable.pro b/tests/auto/qscriptable/qscriptable.pro
index 6852c4d..fd08ab6 100644
--- a/tests/auto/qscriptable/qscriptable.pro
+++ b/tests/auto/qscriptable/qscriptable.pro
@@ -4,3 +4,4 @@ QT = core script testlib
SOURCES += tst_qscriptable.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptclass/qscriptclass.pro b/tests/auto/qscriptclass/qscriptclass.pro
index aae2dd1..664f5ca 100644
--- a/tests/auto/qscriptclass/qscriptclass.pro
+++ b/tests/auto/qscriptclass/qscriptclass.pro
@@ -2,3 +2,4 @@ TARGET = tst_qscriptclass
CONFIG += testcase
QT = core script testlib
SOURCES += tst_qscriptclass.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptcontext/qscriptcontext.pro b/tests/auto/qscriptcontext/qscriptcontext.pro
index 6731cf9..8e89115 100644
--- a/tests/auto/qscriptcontext/qscriptcontext.pro
+++ b/tests/auto/qscriptcontext/qscriptcontext.pro
@@ -5,3 +5,4 @@ SOURCES += tst_qscriptcontext.cpp
# QTBUG-23463
linux-*:system(". /etc/lsb-release && [ $DISTRIB_CODENAME = oneiric ]"):DEFINES+=UBUNTU_ONEIRIC
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptcontextinfo/qscriptcontextinfo.pro b/tests/auto/qscriptcontextinfo/qscriptcontextinfo.pro
index a2ddc27..309ecb3 100644
--- a/tests/auto/qscriptcontextinfo/qscriptcontextinfo.pro
+++ b/tests/auto/qscriptcontextinfo/qscriptcontextinfo.pro
@@ -4,3 +4,4 @@ QT = core script testlib
SOURCES += tst_qscriptcontextinfo.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptengine/qscriptengine.pro b/tests/auto/qscriptengine/qscriptengine.pro
index 834be2a..71e04ab 100644
--- a/tests/auto/qscriptengine/qscriptengine.pro
+++ b/tests/auto/qscriptengine/qscriptengine.pro
@@ -20,3 +20,4 @@ symbian: {
TARGET.UID3 = 0xE0340006
DEFINES += SYMBIAN_SRCDIR_UID=$$lower($$replace(TARGET.UID3,"0x",""))
}
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptengineagent/qscriptengineagent.pro b/tests/auto/qscriptengineagent/qscriptengineagent.pro
index 94a6641..6805e05 100644
--- a/tests/auto/qscriptengineagent/qscriptengineagent.pro
+++ b/tests/auto/qscriptengineagent/qscriptengineagent.pro
@@ -4,3 +4,4 @@ QT = core script testlib
SOURCES += tst_qscriptengineagent.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptenginedebugger/qscriptenginedebugger.pro b/tests/auto/qscriptenginedebugger/qscriptenginedebugger.pro
index de24b73..8a7161a 100644
--- a/tests/auto/qscriptenginedebugger/qscriptenginedebugger.pro
+++ b/tests/auto/qscriptenginedebugger/qscriptenginedebugger.pro
@@ -2,3 +2,4 @@ TARGET = tst_qscriptenginedebugger
CONFIG += testcase
QT += script widgets scripttools testlib
SOURCES += tst_qscriptenginedebugger.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptextensionplugin/simpleplugin/simpleplugin.pro b/tests/auto/qscriptextensionplugin/simpleplugin/simpleplugin.pro
index 1fa9ee4..cca2b08 100644
--- a/tests/auto/qscriptextensionplugin/simpleplugin/simpleplugin.pro
+++ b/tests/auto/qscriptextensionplugin/simpleplugin/simpleplugin.pro
@@ -5,3 +5,4 @@ OTHER_FILES += simpleplugin.json
QT = core script
TARGET = simpleplugin
DESTDIR = ../plugins/script
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptextensionplugin/staticplugin/staticplugin.pro b/tests/auto/qscriptextensionplugin/staticplugin/staticplugin.pro
index 51b0a3b..476a34e 100644
--- a/tests/auto/qscriptextensionplugin/staticplugin/staticplugin.pro
+++ b/tests/auto/qscriptextensionplugin/staticplugin/staticplugin.pro
@@ -7,3 +7,4 @@ QT = core script
DEFINES += QT_STATICPLUGIN
TARGET = staticplugin
DESTDIR = ../plugins/script
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptextensionplugin/test/test.pro b/tests/auto/qscriptextensionplugin/test/test.pro
index 7601078..8bb0b9a 100644
--- a/tests/auto/qscriptextensionplugin/test/test.pro
+++ b/tests/auto/qscriptextensionplugin/test/test.pro
@@ -17,3 +17,4 @@ CONFIG(debug_and_release) {
DESTDIR = ..
}
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptextqobject/qscriptextqobject.pro b/tests/auto/qscriptextqobject/qscriptextqobject.pro
index 5596ff3..8ddebef 100644
--- a/tests/auto/qscriptextqobject/qscriptextqobject.pro
+++ b/tests/auto/qscriptextqobject/qscriptextqobject.pro
@@ -2,3 +2,4 @@ TARGET = tst_qscriptextqobject
CONFIG += testcase
QT = core gui widgets script testlib
SOURCES += tst_qscriptextqobject.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptjstestsuite/qscriptjstestsuite.pro b/tests/auto/qscriptjstestsuite/qscriptjstestsuite.pro
index 1ef7562..c449a8e 100644
--- a/tests/auto/qscriptjstestsuite/qscriptjstestsuite.pro
+++ b/tests/auto/qscriptjstestsuite/qscriptjstestsuite.pro
@@ -12,3 +12,4 @@ testFiles.files = tests
testFiles.path = .
DEPLOYMENT += testFiles
}
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptstring/qscriptstring.pro b/tests/auto/qscriptstring/qscriptstring.pro
index 393454f..874c4ef 100644
--- a/tests/auto/qscriptstring/qscriptstring.pro
+++ b/tests/auto/qscriptstring/qscriptstring.pro
@@ -2,3 +2,4 @@ TARGET = tst_qscriptstring
CONFIG += testcase
QT = core script testlib
SOURCES += tst_qscriptstring.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptv8testsuite/qscriptv8testsuite.pro b/tests/auto/qscriptv8testsuite/qscriptv8testsuite.pro
index a1c0852..23220b1 100644
--- a/tests/auto/qscriptv8testsuite/qscriptv8testsuite.pro
+++ b/tests/auto/qscriptv8testsuite/qscriptv8testsuite.pro
@@ -4,3 +4,4 @@ QT = core-private script testlib
SOURCES += tst_qscriptv8testsuite.cpp
RESOURCES += qscriptv8testsuite.qrc
include(abstracttestsuite.pri)
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptvalue/qscriptvalue.pro b/tests/auto/qscriptvalue/qscriptvalue.pro
index f0f4ff9..a0ac7ed 100644
--- a/tests/auto/qscriptvalue/qscriptvalue.pro
+++ b/tests/auto/qscriptvalue/qscriptvalue.pro
@@ -9,3 +9,4 @@ win32-msvc* {
QMAKE_CXXFLAGS_RELEASE -= -O1 -O2
QMAKE_CXXFLAGS_RELEASE += -Od
}
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptvaluegenerated/qscriptvaluegenerated.pro b/tests/auto/qscriptvaluegenerated/qscriptvaluegenerated.pro
index a8c32a1..d4de265 100644
--- a/tests/auto/qscriptvaluegenerated/qscriptvaluegenerated.pro
+++ b/tests/auto/qscriptvaluegenerated/qscriptvaluegenerated.pro
@@ -17,3 +17,4 @@ win32-msvc* {
QMAKE_CXXFLAGS_RELEASE -= -O1 -O2
QMAKE_CXXFLAGS_RELEASE += -Od
}
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qscriptvalueiterator/qscriptvalueiterator.pro b/tests/auto/qscriptvalueiterator/qscriptvalueiterator.pro
index ec07a80..7312343 100644
--- a/tests/auto/qscriptvalueiterator/qscriptvalueiterator.pro
+++ b/tests/auto/qscriptvalueiterator/qscriptvalueiterator.pro
@@ -4,3 +4,4 @@ QT = core script testlib
SOURCES += tst_qscriptvalueiterator.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qtipc/lackey/lackey.pro b/tests/auto/qtipc/lackey/lackey.pro
index 91659d7..c227dbd 100644
--- a/tests/auto/qtipc/lackey/lackey.pro
+++ b/tests/auto/qtipc/lackey/lackey.pro
@@ -14,3 +14,4 @@ SOURCES += main.cpp
TARGET = lackey
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qtipc/qsharedmemory/qsystemlock/qsystemlock.pro b/tests/auto/qtipc/qsharedmemory/qsystemlock/qsystemlock.pro
index 67f5d13..1144645 100644
--- a/tests/auto/qtipc/qsharedmemory/qsystemlock/qsystemlock.pro
+++ b/tests/auto/qtipc/qsharedmemory/qsystemlock/qsystemlock.pro
@@ -14,3 +14,4 @@ SOURCES += tst_qsystemlock.cpp
TARGET = tst_qsystemlock
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qtipc/qsharedmemory/test/test.pro b/tests/auto/qtipc/qsharedmemory/test/test.pro
index 48d9310..96efb9a 100644
--- a/tests/auto/qtipc/qsharedmemory/test/test.pro
+++ b/tests/auto/qtipc/qsharedmemory/test/test.pro
@@ -12,3 +12,4 @@ SOURCES += ../tst_qsharedmemory.cpp
TARGET = tst_qsharedmemory
DEFINES += SRCDIR=\\\"$$PWD\\\"
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/qtipc/qsystemsemaphore/qsystemsemaphore.pro b/tests/auto/qtipc/qsystemsemaphore/qsystemsemaphore.pro
index 1665c2d..5842d12 100644
--- a/tests/auto/qtipc/qsystemsemaphore/qsystemsemaphore.pro
+++ b/tests/auto/qtipc/qsystemsemaphore/qsystemsemaphore.pro
@@ -14,3 +14,4 @@ TARGET = tst_qsystemsemaphore
RESOURCES += files.qrc
DEFINES += SRCDIR=\\\"$$PWD/\\\"
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/benchmarks/script/context2d/context2d.pro b/tests/benchmarks/script/context2d/context2d.pro
index 2dc8536..7476b69 100644
--- a/tests/benchmarks/script/context2d/context2d.pro
+++ b/tests/benchmarks/script/context2d/context2d.pro
@@ -20,3 +20,4 @@ SOURCES += $$CONTEXT2D_EXAMPLE_DIR/qcontext2dcanvas.cpp \
RESOURCES += $$CONTEXT2D_EXAMPLE_DIR/context2d.qrc
QT += script testlib
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/benchmarks/script/qscriptclass/qscriptclass.pro b/tests/benchmarks/script/qscriptclass/qscriptclass.pro
index 61787ff..2d3e350 100644
--- a/tests/benchmarks/script/qscriptclass/qscriptclass.pro
+++ b/tests/benchmarks/script/qscriptclass/qscriptclass.pro
@@ -5,3 +5,4 @@ TARGET = tst_bench_qscriptclass
SOURCES += tst_qscriptclass.cpp
QT += script testlib
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/benchmarks/script/qscriptclass_bytearray/qscriptclass_bytearray.pro b/tests/benchmarks/script/qscriptclass_bytearray/qscriptclass_bytearray.pro
index 33f200d..f10d291 100644
--- a/tests/benchmarks/script/qscriptclass_bytearray/qscriptclass_bytearray.pro
+++ b/tests/benchmarks/script/qscriptclass_bytearray/qscriptclass_bytearray.pro
@@ -8,3 +8,4 @@ RESOURCES += qscriptclass_bytearray.qrc
include(../../../../examples/script/customclass/bytearrayclass.pri)
QT = core script testlib
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/benchmarks/script/qscriptengine/qscriptengine.pro b/tests/benchmarks/script/qscriptengine/qscriptengine.pro
index d8155f3..c8e89da 100644
--- a/tests/benchmarks/script/qscriptengine/qscriptengine.pro
+++ b/tests/benchmarks/script/qscriptengine/qscriptengine.pro
@@ -10,3 +10,4 @@ symbian* {
TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 // Min 128kB, Max 32MB
TARGET.EPOCSTACKSIZE = 0x14000
}
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/benchmarks/script/qscriptqobject/qscriptqobject.pro b/tests/benchmarks/script/qscriptqobject/qscriptqobject.pro
index c69c60d..5a935a3 100644
--- a/tests/benchmarks/script/qscriptqobject/qscriptqobject.pro
+++ b/tests/benchmarks/script/qscriptqobject/qscriptqobject.pro
@@ -5,3 +5,4 @@ TARGET = tst_bench_qscriptqobject
SOURCES += tst_qscriptqobject.cpp
QT += script testlib
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/benchmarks/script/qscriptvalue/qscriptvalue.pro b/tests/benchmarks/script/qscriptvalue/qscriptvalue.pro
index 9339e5c..b06a15e 100644
--- a/tests/benchmarks/script/qscriptvalue/qscriptvalue.pro
+++ b/tests/benchmarks/script/qscriptvalue/qscriptvalue.pro
@@ -5,3 +5,4 @@ TARGET = tst_bench_qscriptvalue
SOURCES += tst_qscriptvalue.cpp
QT += script testlib
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/benchmarks/script/qscriptvalueiterator/qscriptvalueiterator.pro b/tests/benchmarks/script/qscriptvalueiterator/qscriptvalueiterator.pro
index 5d6b67b..3733ce2 100644
--- a/tests/benchmarks/script/qscriptvalueiterator/qscriptvalueiterator.pro
+++ b/tests/benchmarks/script/qscriptvalueiterator/qscriptvalueiterator.pro
@@ -5,3 +5,4 @@ TARGET = tst_bench_qscriptvalueiterator
SOURCES += tst_qscriptvalueiterator.cpp
QT = core script testlib
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/benchmarks/script/sunspider/sunspider.pro b/tests/benchmarks/script/sunspider/sunspider.pro
index 1409771..5cc3682 100644
--- a/tests/benchmarks/script/sunspider/sunspider.pro
+++ b/tests/benchmarks/script/sunspider/sunspider.pro
@@ -10,3 +10,4 @@ symbian* {
TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 // Min 128kB, Max 32MB
TARGET.EPOCSTACKSIZE = 0x14000
}
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/benchmarks/script/v8/v8.pro b/tests/benchmarks/script/v8/v8.pro
index 1e78b3a..136403f 100644
--- a/tests/benchmarks/script/v8/v8.pro
+++ b/tests/benchmarks/script/v8/v8.pro
@@ -10,3 +10,4 @@ symbian* {
TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 // Min 128kB, Max 32MB
TARGET.EPOCSTACKSIZE = 0x14000
}
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0