Fix typo in enum name.
Change-Id: I2eccbd3b9dd31aa5e869d622055f9235f90c0c03 Reviewed-on: http://codereview.qt.nokia.com/3445 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
parent
4e85437d9b
commit
c542972f1e
@ -1109,8 +1109,8 @@ Q_TESTLIB_EXPORT void qtest_qParseArgs(int argc, char *argv[], bool qml)
|
||||
QTestLog::setLogMode(QTestLog::XML);
|
||||
} else if (strcmp(argv[i], "-lightxml") == 0) {
|
||||
QTestLog::setLogMode(QTestLog::LightXML);
|
||||
}else if(strcmp(argv[i], "-flush") == 0){
|
||||
QTestLog::setFlushMode(QTestLog::FLushOn);
|
||||
} else if (strcmp(argv[i], "-flush") == 0){
|
||||
QTestLog::setFlushMode(QTestLog::FlushOn);
|
||||
} else if (strcmp(argv[i], "-silent") == 0) {
|
||||
QTestLog::setVerboseLevel(-1);
|
||||
} else if (strcmp(argv[i], "-v1") == 0) {
|
||||
|
@ -175,13 +175,13 @@ namespace QTest {
|
||||
QTest::testLogger = new QPlainTestLogger;
|
||||
break;
|
||||
case QTestLog::XML:
|
||||
if(QTest::flushMode == QTestLog::FLushOn)
|
||||
if (QTest::flushMode == QTestLog::FlushOn)
|
||||
QTest::testLogger = new QXmlTestLogger(QXmlTestLogger::Complete);
|
||||
else
|
||||
QTest::testLogger = new QTestLogger(QTestLogger::TLF_XML);
|
||||
break;
|
||||
case QTestLog::LightXML:
|
||||
if(QTest::flushMode == QTestLog::FLushOn)
|
||||
if (QTest::flushMode == QTestLog::FlushOn)
|
||||
QTest::testLogger = new QXmlTestLogger(QXmlTestLogger::Light);
|
||||
else
|
||||
QTest::testLogger = new QTestLogger(QTestLogger::TLF_LightXml);
|
||||
|
@ -63,7 +63,7 @@ class Q_TESTLIB_EXPORT QTestLog
|
||||
{
|
||||
public:
|
||||
enum LogMode { Plain = 0, XML, LightXML, XunitXML };
|
||||
enum FlushMode { NoFlush = 0, FLushOn };
|
||||
enum FlushMode { NoFlush = 0, FlushOn };
|
||||
|
||||
static void enterTestFunction(const char* function);
|
||||
static void leaveTestFunction();
|
||||
|
Loading…
Reference in New Issue
Block a user