Squish: Fix expected Qml error

Change-Id: I06395d6c0643c86a13f97a77c3c82771be9a1de3
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2019-02-08 08:10:13 +01:00
committed by Robert Loehning
parent 037ab39cb8
commit b0795c3210
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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")