summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@theqtcompany.com>2016-07-13 12:58:37 +0200
committerThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2016-07-13 12:24:37 +0000
commit1b90a938a34821cf087e8385e347fe7a84f87510 (patch)
treeed76af9c13a65bbe54f5f77f4249598cdb03d77f /tests
parent3685499785e2e24efe85c861dfd9ec66b5ecf366 (diff)
downloadqt-creator-1b90a938a34821cf087e8385e347fe7a84f87510.tar.gz
QmlDesigner: disable debug outputs
+ prettify code Change-Id: I1749ba5a92b5a1afb1c98bf621aec98cbc838405 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp b/tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp
index 5d650196a5..4f9dabcdf3 100644
--- a/tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp
+++ b/tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp
@@ -124,8 +124,6 @@ public:
{
return QmlJS::LibraryInfo();
}
-
-
};
static void initializeMetaTypeSystem(const QString &resourcePath)
@@ -172,6 +170,7 @@ tst_TestCore::tst_TestCore()
: QObject()
{
QLoggingCategory::setFilterRules(QStringLiteral("qtc.qmljs.imports=false"));
+ QLoggingCategory::setFilterRules(QStringLiteral("*.info=false\n*.debug=false\n*.warning=false"));
}
void tst_TestCore::initTestCase()
@@ -190,10 +189,8 @@ void tst_TestCore::initTestCase()
QmlJS::PathsAndLanguages lPaths;
lPaths.maybeInsert(Utils::FileName::fromString(basePaths.first()), QmlJS::Dialect::Qml);
- QmlJS::ModelManagerInterface::importScan(result, QmlJS::ModelManagerInterface::workingCopy(), lPaths,
- QmlJS::ModelManagerInterface::instance(), false);
-
-
+ QmlJS::ModelManagerInterface::importScan(result, QmlJS::ModelManagerInterface::workingCopy(),
+ lPaths, QmlJS::ModelManagerInterface::instance(), false);
// Load plugins
@@ -209,7 +206,7 @@ void tst_TestCore::initTestCase()
QFileInfo builtins(resourcePath() + "/qml-type-descriptions/builtins.qmltypes");
QStringList errors, warnings;
- QmlJS::CppQmlTypesLoader::defaultQtObjects = QmlJS::CppQmlTypesLoader::loadQmlTypes(QFileInfoList() << builtins, &errors, &warnings);
+ QmlJS::CppQmlTypesLoader::defaultQtObjects = QmlJS::CppQmlTypesLoader::loadQmlTypes(QFileInfoList{builtins}, &errors, &warnings);
}
void tst_TestCore::cleanupTestCase()