aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api/testdata/codegen/codegen.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/api/testdata/codegen/codegen.qbs')
-rw-r--r--tests/auto/api/testdata/codegen/codegen.qbs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/api/testdata/codegen/codegen.qbs b/tests/auto/api/testdata/codegen/codegen.qbs
index 29c7818c4..42e4c6b08 100644
--- a/tests/auto/api/testdata/codegen/codegen.qbs
+++ b/tests/auto/api/testdata/codegen/codegen.qbs
@@ -43,7 +43,7 @@ Project {
// check whether multipart module name translation is working
var actual = product.moduleProperty("Qt.core", "mocName");
- if (!actual || !actual.contains("moc"))
+ if (!actual || !actual.includes("moc"))
throw "multipart module name translation is broken";
// check whether we can access project properties here
@@ -57,7 +57,7 @@ Project {
code = expandMacros(code, product.replacements);
var args = ['echo ' + code + '>' + output.filePath]
var cmd
- if (product.moduleProperty("qbs", "hostOS").contains('windows')) {
+ if (product.moduleProperty("qbs", "hostOS").includes('windows')) {
cmd = new Command(product.qbs.windowsShellPath, ['/C'].concat(args));
} else {
args[0] = args[0].replace(/\(/g, '\\(')