on xenial help sign in
Tests code
commitc998957bf48c5dea6ae6656db8a0a2cb1f42be4f authorAndrea Cimitan <andrea.cimitan@gmail.com> dateThu 31 Jul 2014, 14:37 (12 years ago) parent6400b0c
1 file changed+3−1
tests/plugins/Dash/cardcreatortest.cpp+3−1
tests/plugins/Dash/cardcreatortest.cpp+3−1
@@ -83,13 +83,15 @@ private Q_SLOTS:
8383 tmpFile.setAutoRemove(false);
8484 tmpFile.write(executedResult.toUtf8().constData());
8585
86+ // Line by line comparison
8687 const QStringList expectedLines = ts2.readAll().trimmed().replace(QRegExp("\n\\s*\n"),"\n").split("\n");
8788 const QStringList cardStringResultLines = cardStringResult.toString().trimmed().replace(QRegExp("\n\\s*\n"),"\n").split("\n");
8889 for (int i = 0; i < expectedLines.size(); ++i) {
8990 QCOMPARE(cardStringResultLines[i].simplified(), expectedLines[i].simplified());
9091 }
9192
92− tmpFile.setAutoRemove(true); // Remove the result if it passed
93+ // Remove the result if it passed
94+ tmpFile.setAutoRemove(true);
9395
9496 QVariant createCardComponentResult;
9597 QMetaObject::invokeMethod(view->rootObject(), "createCardComponent", Q_RETURN_ARG(QVariant, createCardComponentResult), Q_ARG(QVariant, templateJSON), Q_ARG(QVariant, componentsJSON));