summaryrefslogtreecommitdiff
path: root/tests/auto/language/tst_language.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2023-02-15 12:55:02 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2023-02-16 13:04:04 +0000
commit69c3daf42c0ffb9b1f479d37f0caced77dc7fde8 (patch)
tree39d2abe570b9087f6b6d5d0e18a6d4710a233b34 /tests/auto/language/tst_language.cpp
parentd60e43c90e9dd0565128e7b3e315ff82115418f7 (diff)
downloadqbs-69c3daf42c0ffb9b1f479d37f0caced77dc7fde8.tar.gz
Prefer built-in JS function in autotests
contains -> includes Change-Id: I330b1ee3319399d6c59ce5a4efaf14c642ad361e Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'tests/auto/language/tst_language.cpp')
-rw-r--r--tests/auto/language/tst_language.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/language/tst_language.cpp b/tests/auto/language/tst_language.cpp
index 89bda3ab1..689b3bd7f 100644
--- a/tests/auto/language/tst_language.cpp
+++ b/tests/auto/language/tst_language.cpp
@@ -878,7 +878,7 @@ void TestLanguage::erroneousFiles_data()
<< "The value '.*' of Project.minimumQbsVersion is not a valid version string.";
QTest::newRow("properties-item-with-invalid-condition")
<< "properties-item-with-invalid-condition.qbs:4:19.*"
- "cannot read property 'contains' of undefined";
+ "cannot read property 'includes' of undefined";
QTest::newRow("misused-inherited-property") << "Binding to non-item property";
QTest::newRow("undeclared_property_in_Properties_item") << "Item 'blubb' is not declared";
QTest::newRow("same-module-prefix1") << "The name of module 'prefix1' is equal to the first "