From b0795c32101dbd855118bd5806a95d01786397f4 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 8 Feb 2019 08:10:13 +0100 Subject: [PATCH] Squish: Fix expected Qml error Change-Id: I06395d6c0643c86a13f97a77c3c82771be9a1de3 Reviewed-by: Robert Loehning --- tests/system/shared/suites_qtta.py | 1 + tests/system/suite_CCOM/tst_CCOM02/test.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/system/shared/suites_qtta.py b/tests/system/shared/suites_qtta.py index d465ea6aa46..79d5ee3edaf 100755 --- a/tests/system/shared/suites_qtta.py +++ b/tests/system/shared/suites_qtta.py @@ -55,6 +55,7 @@ def checkSyntaxError(issuesView, expectedTextsArray, warnIfMoreIssues = True): test.warning("Expected error text found, but is not of type: 'error'") return False else: + test.log("Found expected error (%s)" % expectedText) return True return False diff --git a/tests/system/suite_CCOM/tst_CCOM02/test.py b/tests/system/suite_CCOM/tst_CCOM02/test.py index 44e95fa787a..b49594ddfb3 100755 --- a/tests/system/suite_CCOM/tst_CCOM02/test.py +++ b/tests/system/suite_CCOM/tst_CCOM02/test.py @@ -54,7 +54,7 @@ def main(): ensureChecked(waitForObject(":Qt Creator_Issues_Core::Internal::OutputPaneToggleButton")) issuesView = waitForObject(":Qt Creator.Issues_QListView") # verify that error is properly reported - test.verify(checkSyntaxError(issuesView, ["Syntax error"], True), + test.verify(checkSyntaxError(issuesView, ["Expected token `:'"], True), "Verifying QML syntax error while parsing complex qt quick application.") # exit qt creator invokeMenuItem("File", "Exit")