diff options
author | hjk <qtc-committer@nokia.com> | 2009-10-30 09:55:29 (GMT) |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2009-10-30 09:55:29 (GMT) |
commit | d670ef51fe76adccd6f4d017f6a23940ab5284ee (patch) | |
tree | a538803d9fe52630ed77a5d2c5992fbbf022992e /tests/auto/qstringbuilder2 | |
parent | 1b0dad4d1c9b3693b6fb9c93d8dc06a4eaf42d83 (diff) | |
download | Qt-d670ef51fe76adccd6f4d017f6a23940ab5284ee.zip Qt-d670ef51fe76adccd6f4d017f6a23940ab5284ee.tar.gz Qt-d670ef51fe76adccd6f4d017f6a23940ab5284ee.tar.bz2 |
rename qstringbuilder test classes
Diffstat (limited to 'tests/auto/qstringbuilder2')
-rw-r--r-- | tests/auto/qstringbuilder2/qstringbuilder2.pro | 3 | ||||
-rw-r--r-- | tests/auto/qstringbuilder2/tst_qstringbuilder2.cpp | 32 |
2 files changed, 32 insertions, 3 deletions
diff --git a/tests/auto/qstringbuilder2/qstringbuilder2.pro b/tests/auto/qstringbuilder2/qstringbuilder2.pro index c0b3ebc..4152dc3 100644 --- a/tests/auto/qstringbuilder2/qstringbuilder2.pro +++ b/tests/auto/qstringbuilder2/qstringbuilder2.pro @@ -3,6 +3,3 @@ load(qttest_p4) QT = core SOURCES += tst_qstringbuilder2.cpp -HEADERS += ../qstringbuilder1/stringbuilder.h - -DEFINES += SCENARIO=2 diff --git a/tests/auto/qstringbuilder2/tst_qstringbuilder2.cpp b/tests/auto/qstringbuilder2/tst_qstringbuilder2.cpp index bd2e4b0..4470928 100644 --- a/tests/auto/qstringbuilder2/tst_qstringbuilder2.cpp +++ b/tests/auto/qstringbuilder2/tst_qstringbuilder2.cpp @@ -39,4 +39,36 @@ ** ****************************************************************************/ + +// SCENARIO 2 +// this is the "full" version. Operator+ is replaced by a QStringBuilder +// based version +// with NO_CAST * defined +#define P + +#define QT_USE_FAST_OPERATOR_PLUS +#define QT_USE_FAST_CONCATENATION +#define QT_NO_CAST_FROM_ASCII +#define 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_QStringBuilder2 : public QObject +{ + Q_OBJECT + +private slots: + void scenario() { runScenario(); } +}; + #include "../qstringbuilder1/stringbuilder.cpp" +#include "tst_qstringbuilder2.moc" + +QTEST_APPLESS_MAIN(tst_QStringBuilder2) |