Commit 4ca5e42f authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlDesigner: Autotest cosmetics

parent 497e5141
......@@ -27,27 +27,27 @@
**
**************************************************************************/
static void testMessageOutput(QtMsgType type, const char *msg)
{
switch (type) {
case QtDebugMsg:
#ifdef QDEBUG_IN_TESTS
std::fprintf(stderr, "Debug: %s\n", msg);
#endif // QDEBUG_IN_TESTS
break;
case QtWarningMsg:
#ifdef WARNINGS_IN_TESTS
std::fprintf(stderr, "Warning: %s\n", msg);
#endif // WARNINGS_IN_TESTS
break;
case QtCriticalMsg:
std::fprintf(stderr, "Critical: %s\n", msg);
break;
case QtFatalMsg:
std::fprintf(stderr, "Fatal: %s\n", msg);
break;
}
}
//static void testMessageOutput(QtMsgType type, const char *msg)
// {
// switch (type) {
// case QtDebugMsg:
//#ifdef QDEBUG_IN_TESTS
// std::fprintf(stderr, "Debug: %s\n", msg);
//#endif // QDEBUG_IN_TESTS
// break;
// case QtWarningMsg:
//#ifdef WARNINGS_IN_TESTS
// std::fprintf(stderr, "Warning: %s\n", msg);
//#endif // WARNINGS_IN_TESTS
// break;
// case QtCriticalMsg:
// std::fprintf(stderr, "Critical: %s\n", msg);
// break;
// case QtFatalMsg:
// std::fprintf(stderr, "Fatal: %s\n", msg);
// break;
// }
// }
static ModelNode addChildNode(const ModelNode &parentNode, const QString &typeName, int major, int minor, const QString &parentProperty)
{
......
......@@ -2539,7 +2539,7 @@ void TestCore::testRewriterNodeSliding()
QCOMPARE(rootNode.nodeListProperty(QLatin1String("data")).toModelNodeList().at(1).id(), QLatin1String("rectangle2"));
}
void TestCore::testRewriterExecptionHandling()
void TestCore::testRewriterExceptionHandling()
{
const QLatin1String qmlString("import Qt 4.6\n"
"Text {\n"
......
......@@ -117,7 +117,7 @@ private slots:
void testRewriterForArrayMagic();
void testRewriterWithSignals();
void testRewriterNodeSliding();
void testRewriterExecptionHandling();
void testRewriterExceptionHandling();
//
// unit tests QmlModelNodeFacade/QmlModelState
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment