summaryrefslogtreecommitdiffstats
path: root/tests/auto/qstringbuilder3
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2009-10-30 09:55:29 (GMT)
committerhjk <qtc-committer@nokia.com>2009-10-30 09:55:29 (GMT)
commitd670ef51fe76adccd6f4d017f6a23940ab5284ee (patch)
treea538803d9fe52630ed77a5d2c5992fbbf022992e /tests/auto/qstringbuilder3
parent1b0dad4d1c9b3693b6fb9c93d8dc06a4eaf42d83 (diff)
downloadQt-d670ef51fe76adccd6f4d017f6a23940ab5284ee.zip
Qt-d670ef51fe76adccd6f4d017f6a23940ab5284ee.tar.gz
Qt-d670ef51fe76adccd6f4d017f6a23940ab5284ee.tar.bz2
rename qstringbuilder test classes
Diffstat (limited to 'tests/auto/qstringbuilder3')
-rw-r--r--tests/auto/qstringbuilder3/qstringbuilder3.pro3
-rw-r--r--tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp31
2 files changed, 31 insertions, 3 deletions
diff --git a/tests/auto/qstringbuilder3/qstringbuilder3.pro b/tests/auto/qstringbuilder3/qstringbuilder3.pro
index 93d1a39..b4d2225 100644
--- a/tests/auto/qstringbuilder3/qstringbuilder3.pro
+++ b/tests/auto/qstringbuilder3/qstringbuilder3.pro
@@ -3,6 +3,3 @@ load(qttest_p4)
QT = core
SOURCES += tst_qstringbuilder3.cpp
-HEADERS += ../qstringbuilder1/stringbuilder.h
-
-DEFINES += SCENARIO=3
diff --git a/tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp b/tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp
index bd2e4b0..30f0181 100644
--- a/tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp
+++ b/tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp
@@ -39,4 +39,35 @@
**
****************************************************************************/
+
+// SCENARIO 3
+// this is the "no harm done" version. Only operator% is active,
+// with NO_CAST * _not_ defined
+#define P %
+#undef QT_USE_FAST_OPERATOR_PLUS
+#undef QT_USE_FAST_CONCATENATION
+#undef QT_NO_CAST_FROM_ASCII
+#undef QT_NO_CAST_TO_ASCII
+
+
+#include <QtTest/QtTest>
+
+//TESTED_CLASS=QStringBuilder
+//TESTED_FILES=qstringbuilder.cpp
+
+#define LITERAL "some literal"
+
+void runScenario(); // Defined in stringbuilder.cpp #included below.
+
+class tst_QStringBuilder3 : public QObject
+{
+ Q_OBJECT
+
+private slots:
+ void scenario() { runScenario(); }
+};
+
#include "../qstringbuilder1/stringbuilder.cpp"
+#include "tst_qstringbuilder3.moc"
+
+QTEST_APPLESS_MAIN(tst_QStringBuilder3)