From f8e3ad9d83fbef89a529a68d807d09a2437c6a95 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Tue, 6 Dec 2011 10:29:08 +1000 Subject: Remove TESTED_CLASS/TESTED_FILES comments from tests. These comments were mostly empty. Appropriate naming of tests and appropriate placement of tests within the directory tree provide more reliable indicators of what is being tested. Change-Id: I9d15ceb0aab96ceecb0d5d75ef3f7978eb85ba11 Reviewed-by: Rohan McGovern --- tests/auto/qscriptable/tst_qscriptable.cpp | 3 --- tests/auto/qscriptclass/tst_qscriptclass.cpp | 3 --- tests/auto/qscriptcontext/tst_qscriptcontext.cpp | 3 --- tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp | 3 --- tests/auto/qscriptengine/tst_qscriptengine.cpp | 3 --- tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp | 3 --- tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp | 3 --- tests/auto/qscriptextensionplugin/tst_qscriptextensionplugin.cpp | 3 --- tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp | 3 --- tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp | 3 --- tests/auto/qscriptstring/tst_qscriptstring.cpp | 3 --- tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp | 3 --- tests/auto/qscriptvalue/tst_qscriptvalue.cpp | 3 --- tests/auto/qscriptvaluegenerated/tst_qscriptvalue.cpp | 3 --- tests/auto/qscriptvalueiterator/tst_qscriptvalueiterator.cpp | 3 --- tests/auto/qtipc/qsharedmemory/qsystemlock/tst_qsystemlock.cpp | 3 --- tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp | 3 --- tests/auto/qtipc/qsystemsemaphore/tst_qsystemsemaphore.cpp | 2 -- tests/benchmarks/script/qscriptengine/tst_qscriptengine.cpp | 2 -- tests/benchmarks/script/qscriptvalue/tst_qscriptvalue.cpp | 2 -- .../script/qscriptvalueiterator/tst_qscriptvalueiterator.cpp | 2 -- tests/benchmarks/script/sunspider/tst_sunspider.cpp | 2 -- tests/benchmarks/script/v8/tst_v8.cpp | 2 -- 23 files changed, 63 deletions(-) (limited to 'tests') diff --git a/tests/auto/qscriptable/tst_qscriptable.cpp b/tests/auto/qscriptable/tst_qscriptable.cpp index 54ffbe9..d8ecbb5 100644 --- a/tests/auto/qscriptable/tst_qscriptable.cpp +++ b/tests/auto/qscriptable/tst_qscriptable.cpp @@ -46,9 +46,6 @@ #include #include -//TESTED_CLASS= -//TESTED_FILES= - class MyScriptable : public QObject, public QScriptable { Q_OBJECT diff --git a/tests/auto/qscriptclass/tst_qscriptclass.cpp b/tests/auto/qscriptclass/tst_qscriptclass.cpp index 446c9fd..bad63b8 100644 --- a/tests/auto/qscriptclass/tst_qscriptclass.cpp +++ b/tests/auto/qscriptclass/tst_qscriptclass.cpp @@ -52,9 +52,6 @@ Q_DECLARE_METATYPE(QScriptContext*) Q_DECLARE_METATYPE(QScriptValueList) Q_DECLARE_METATYPE(QScriptValue) -//TESTED_CLASS= -//TESTED_FILES=script/qscriptclass.h script/qscriptclass.cpp script/qscriptclasspropertyiterator.h script/qscriptclasspropertyiterator.cpp - class tst_QScriptClass : public QObject { Q_OBJECT diff --git a/tests/auto/qscriptcontext/tst_qscriptcontext.cpp b/tests/auto/qscriptcontext/tst_qscriptcontext.cpp index 6f14965..4b030ed 100644 --- a/tests/auto/qscriptcontext/tst_qscriptcontext.cpp +++ b/tests/auto/qscriptcontext/tst_qscriptcontext.cpp @@ -46,9 +46,6 @@ #include #include -//TESTED_CLASS= -//TESTED_FILES= - Q_DECLARE_METATYPE(QScriptValueList) Q_DECLARE_METATYPE(QScriptContext::Error) diff --git a/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp b/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp index e0ce20b..0e673b3 100644 --- a/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp +++ b/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp @@ -52,9 +52,6 @@ Q_DECLARE_METATYPE(QScriptValue) Q_DECLARE_METATYPE(QScriptContextInfo) Q_DECLARE_METATYPE(QList) -//TESTED_CLASS= -//TESTED_FILES= - class tst_QScriptContextInfo : public QObject, public QScriptable { Q_OBJECT diff --git a/tests/auto/qscriptengine/tst_qscriptengine.cpp b/tests/auto/qscriptengine/tst_qscriptengine.cpp index 1594343..b0d35ad 100644 --- a/tests/auto/qscriptengine/tst_qscriptengine.cpp +++ b/tests/auto/qscriptengine/tst_qscriptengine.cpp @@ -57,9 +57,6 @@ Q_DECLARE_METATYPE(QList) Q_DECLARE_METATYPE(QObjectList) Q_DECLARE_METATYPE(QScriptProgram) -//TESTED_CLASS= -//TESTED_FILES= - #if defined(Q_OS_SYMBIAN) # define STRINGIFY(x) #x # define TOSTRING(x) STRINGIFY(x) diff --git a/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp b/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp index f049e53..46f5947 100644 --- a/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp +++ b/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp @@ -47,9 +47,6 @@ #include #include -//TESTED_CLASS= -//TESTED_FILES= - QT_BEGIN_NAMESPACE extern bool qt_script_isJITEnabled(); QT_END_NAMESPACE diff --git a/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp b/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp index 32be18d..9209a5b 100644 --- a/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp +++ b/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp @@ -51,9 +51,6 @@ #include #include -//TESTED_CLASS= -//TESTED_FILES= - // Can't use QTest::qWait() because it causes event loop to hang on some platforms static void qsWait(int ms) { diff --git a/tests/auto/qscriptextensionplugin/tst_qscriptextensionplugin.cpp b/tests/auto/qscriptextensionplugin/tst_qscriptextensionplugin.cpp index ee840a8..f2fe531 100644 --- a/tests/auto/qscriptextensionplugin/tst_qscriptextensionplugin.cpp +++ b/tests/auto/qscriptextensionplugin/tst_qscriptextensionplugin.cpp @@ -44,9 +44,6 @@ #include -//TESTED_CLASS= -//TESTED_FILES= - class tst_QScriptExtensionPlugin : public QObject { Q_OBJECT diff --git a/tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp b/tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp index cc3f528..740d5a6 100644 --- a/tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp +++ b/tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp @@ -49,9 +49,6 @@ #include #include -//TESTED_CLASS= -//TESTED_FILES=script/qscriptextqobject_p.h script/qscriptextqobject.cpp - struct CustomType { QString string; diff --git a/tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp b/tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp index a9247d9..f13bb6c 100644 --- a/tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp +++ b/tests/auto/qscriptjstestsuite/tst_qscriptjstestsuite.cpp @@ -49,9 +49,6 @@ # define SRCDIR "." #endif -//TESTED_CLASS= -//TESTED_FILES= - struct TestRecord { TestRecord() : lineNumber(-1) { } diff --git a/tests/auto/qscriptstring/tst_qscriptstring.cpp b/tests/auto/qscriptstring/tst_qscriptstring.cpp index 03c72ca..19dab05 100644 --- a/tests/auto/qscriptstring/tst_qscriptstring.cpp +++ b/tests/auto/qscriptstring/tst_qscriptstring.cpp @@ -45,9 +45,6 @@ #include #include -//TESTED_CLASS= -//TESTED_FILES= - class tst_QScriptString : public QObject { Q_OBJECT diff --git a/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp b/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp index caaaa74..0d256fe 100644 --- a/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp +++ b/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp @@ -44,9 +44,6 @@ #include #include -//TESTED_CLASS= -//TESTED_FILES= - class tst_QScriptV8TestSuite : public AbstractTestSuite { public: diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp index 9792e02..96e5178 100644 --- a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp +++ b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp @@ -42,9 +42,6 @@ #include "tst_qscriptvalue.h" #include -//TESTED_CLASS= -//TESTED_FILES= - QT_BEGIN_NAMESPACE extern bool qt_script_isJITEnabled(); QT_END_NAMESPACE diff --git a/tests/auto/qscriptvaluegenerated/tst_qscriptvalue.cpp b/tests/auto/qscriptvaluegenerated/tst_qscriptvalue.cpp index 029fe14..ce96ee2 100644 --- a/tests/auto/qscriptvaluegenerated/tst_qscriptvalue.cpp +++ b/tests/auto/qscriptvaluegenerated/tst_qscriptvalue.cpp @@ -41,9 +41,6 @@ #include "tst_qscriptvalue.h" -//TESTED_CLASS= -//TESTED_FILES= - QT_BEGIN_NAMESPACE extern bool qt_script_isJITEnabled(); QT_END_NAMESPACE diff --git a/tests/auto/qscriptvalueiterator/tst_qscriptvalueiterator.cpp b/tests/auto/qscriptvalueiterator/tst_qscriptvalueiterator.cpp index fa43c0f..ec69dbc 100644 --- a/tests/auto/qscriptvalueiterator/tst_qscriptvalueiterator.cpp +++ b/tests/auto/qscriptvalueiterator/tst_qscriptvalueiterator.cpp @@ -45,9 +45,6 @@ #include #include -//TESTED_CLASS= -//TESTED_FILES= - Q_DECLARE_METATYPE(QScriptValue); class tst_QScriptValueIterator : public QObject diff --git a/tests/auto/qtipc/qsharedmemory/qsystemlock/tst_qsystemlock.cpp b/tests/auto/qtipc/qsharedmemory/qsystemlock/tst_qsystemlock.cpp index 0613fbc..7de23fb 100644 --- a/tests/auto/qtipc/qsharedmemory/qsystemlock/tst_qsystemlock.cpp +++ b/tests/auto/qtipc/qsharedmemory/qsystemlock/tst_qsystemlock.cpp @@ -43,9 +43,6 @@ #include #include -//TESTED_CLASS= -//TESTED_FILES= - #define EXISTING_SHARE "existing" class tst_QSystemLock : public QObject diff --git a/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp b/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp index 100aca9..2609b99 100644 --- a/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp +++ b/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp @@ -44,9 +44,6 @@ #include #include -//TESTED_CLASS= -//TESTED_FILES= - #define EXISTING_SHARE "existing" #define EXISTING_SIZE 1024 diff --git a/tests/auto/qtipc/qsystemsemaphore/tst_qsystemsemaphore.cpp b/tests/auto/qtipc/qsystemsemaphore/tst_qsystemsemaphore.cpp index a8af860..509a188 100644 --- a/tests/auto/qtipc/qsystemsemaphore/tst_qsystemsemaphore.cpp +++ b/tests/auto/qtipc/qsystemsemaphore/tst_qsystemsemaphore.cpp @@ -42,8 +42,6 @@ #include #include -//TESTED_CLASS= -//TESTED_FILES= #define EXISTING_SHARE "existing" #ifdef Q_OS_WINCE diff --git a/tests/benchmarks/script/qscriptengine/tst_qscriptengine.cpp b/tests/benchmarks/script/qscriptengine/tst_qscriptengine.cpp index ea92f1a..4c4b66e 100644 --- a/tests/benchmarks/script/qscriptengine/tst_qscriptengine.cpp +++ b/tests/benchmarks/script/qscriptengine/tst_qscriptengine.cpp @@ -46,8 +46,6 @@ Q_DECLARE_METATYPE(QScriptValue) -//TESTED_FILES= - class tst_QScriptEngine : public QObject { Q_OBJECT diff --git a/tests/benchmarks/script/qscriptvalue/tst_qscriptvalue.cpp b/tests/benchmarks/script/qscriptvalue/tst_qscriptvalue.cpp index 32b590d..2242cfc 100644 --- a/tests/benchmarks/script/qscriptvalue/tst_qscriptvalue.cpp +++ b/tests/benchmarks/script/qscriptvalue/tst_qscriptvalue.cpp @@ -44,8 +44,6 @@ Q_DECLARE_METATYPE(QScriptValue) -//TESTED_FILES= - class tst_QScriptValue : public QObject { Q_OBJECT diff --git a/tests/benchmarks/script/qscriptvalueiterator/tst_qscriptvalueiterator.cpp b/tests/benchmarks/script/qscriptvalueiterator/tst_qscriptvalueiterator.cpp index be52e70..4bae094 100644 --- a/tests/benchmarks/script/qscriptvalueiterator/tst_qscriptvalueiterator.cpp +++ b/tests/benchmarks/script/qscriptvalueiterator/tst_qscriptvalueiterator.cpp @@ -42,8 +42,6 @@ #include #include -//TESTED_FILES= - class tst_QScriptValueIterator : public QObject { Q_OBJECT diff --git a/tests/benchmarks/script/sunspider/tst_sunspider.cpp b/tests/benchmarks/script/sunspider/tst_sunspider.cpp index 68e5cba..5ec415f 100644 --- a/tests/benchmarks/script/sunspider/tst_sunspider.cpp +++ b/tests/benchmarks/script/sunspider/tst_sunspider.cpp @@ -46,8 +46,6 @@ #include #include -//TESTED_FILES= - static QString readFile(const QString &filename) { QFile file(filename); diff --git a/tests/benchmarks/script/v8/tst_v8.cpp b/tests/benchmarks/script/v8/tst_v8.cpp index 64fa4df..6965f66 100644 --- a/tests/benchmarks/script/v8/tst_v8.cpp +++ b/tests/benchmarks/script/v8/tst_v8.cpp @@ -46,8 +46,6 @@ #include #include -//TESTED_FILES= - static QString readFile(const QString &filename) { QFile file(filename); -- cgit v1.2.1