aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qqmllanguage/data/importJs.7.errors.txt1
-rw-r--r--tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/importJs.7.errors.txt b/tests/auto/qml/qqmllanguage/data/importJs.7.errors.txt
index 8a5f3c6721..f555ed43ae 100644
--- a/tests/auto/qml/qqmllanguage/data/importJs.7.errors.txt
+++ b/tests/auto/qml/qqmllanguage/data/importJs.7.errors.txt
@@ -1 +1,2 @@
2:1:"org.qtproject.PureJsModule" is ambiguous.
+2:1:"org.qtproject.PureJsModule" is ambiguous.
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));
}
}