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/qstringbuilder4 | |
parent | 1b0dad4d1c9b3693b6fb9c93d8dc06a4eaf42d83 (diff) | |
download | Qt-d670ef51fe76adccd6f4d017f6a23940ab5284ee.zip Qt-d670ef51fe76adccd6f4d017f6a23940ab5284ee.tar.gz Qt-d670ef51fe76adccd6f4d017f6a23940ab5284ee.tar.bz2 |
rename qstringbuilder test classes
Diffstat (limited to 'tests/auto/qstringbuilder4')
-rw-r--r-- | tests/auto/qstringbuilder4/qstringbuilder4.pro | 3 | ||||
-rw-r--r-- | tests/auto/qstringbuilder4/tst_qstringbuilder4.cpp | 34 |
2 files changed, 33 insertions, 4 deletions
diff --git a/tests/auto/qstringbuilder4/qstringbuilder4.pro b/tests/auto/qstringbuilder4/qstringbuilder4.pro index eeec447..6ec5228 100644 --- a/tests/auto/qstringbuilder4/qstringbuilder4.pro +++ b/tests/auto/qstringbuilder4/qstringbuilder4.pro @@ -3,6 +3,3 @@ load(qttest_p4) QT = core SOURCES += tst_qstringbuilder4.cpp -HEADERS += ../qstringbuilder1/stringbuilder.h - -DEFINES += SCENARIO=4 diff --git a/tests/auto/qstringbuilder4/tst_qstringbuilder4.cpp b/tests/auto/qstringbuilder4/tst_qstringbuilder4.cpp index 2159283..95b4ec3 100644 --- a/tests/auto/qstringbuilder4/tst_qstringbuilder4.cpp +++ b/tests/auto/qstringbuilder4/tst_qstringbuilder4.cpp @@ -4,7 +4,7 @@ ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** -** This file is part of the QtXmlPatterns module of the Qt Toolkit. +** This file is part of the test suite module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commercial Usage @@ -39,4 +39,36 @@ ** ****************************************************************************/ + +// SCENARIO 4 +// this is the "full" version. Operator+ is replaced by a QStringBuilder +// based version +// with NO_CAST * _not_ defined +#define P + +#define QT_USE_FAST_OPERATOR_PLUS +#define 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_QStringBuilder4 : public QObject +{ + Q_OBJECT + +private slots: + void scenario() { runScenario(); } +}; + #include "../qstringbuilder1/stringbuilder.cpp" +#include "tst_qstringbuilder4.moc" + +QTEST_APPLESS_MAIN(tst_QStringBuilder4) |