diff --git a/tests/auto/qml/reformatter/comments.qml b/tests/auto/qml/reformatter/comments.qml index 5bffa03d814..4ced7eb0e89 100644 --- a/tests/auto/qml/reformatter/comments.qml +++ b/tests/auto/qml/reformatter/comments.qml @@ -1,6 +1,5 @@ import QtQuick 2.0 - /* Comment 1 This is a multiline comment. */ diff --git a/tests/auto/qml/reformatter/tst_reformatter.cpp b/tests/auto/qml/reformatter/tst_reformatter.cpp index 24d9014d9b2..f3164f440e3 100644 --- a/tests/auto/qml/reformatter/tst_reformatter.cpp +++ b/tests/auto/qml/reformatter/tst_reformatter.cpp @@ -99,7 +99,7 @@ void tst_Reformatter::test() const QString &newLinee = newLines.at(i); if (sourceLine.trimmed().isEmpty() && newLinee.trimmed().isEmpty()) continue; - bool fail = !QCOMPARE_NOEXIT(sourceLine, newLinee); + bool fail = !QCOMPARE_NOEXIT(newLinee, sourceLine); if (fail) { qDebug() << "in line" << (i + 1); return;