aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp')
-rw-r--r--tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
index 478f236ee2..d09f903ccb 100644
--- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
+++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
@@ -3422,11 +3422,11 @@ void tst_qqmllanguage::importJs()
{
DETERMINE_ERRORS(errorFile,expected,actual);
- QCOMPARE(expected.size(), actual.size());
+ QCOMPARE(actual.size(), expected.size());
for (int i = 0; i < expected.size(); ++i)
{
const int compareLen = qMin(expected.at(i).length(), actual.at(i).length());
- QCOMPARE(expected.at(i).left(compareLen), actual.at(i).left(compareLen));
+ QCOMPARE(actual.at(i).left(compareLen), expected.at(i).left(compareLen));
}
}