SquishTests: Revert expected error message in tst_QMLS02

This partially reverts commit
3744160c3b due to
f60b641066 which reverted
Creator's behavior.

Change-Id: Ia241205d12e3742adcb246b94a5fefb174699fd0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Löhning
2025-01-08 17:49:15 +01:00
parent b334225255
commit 9ae3ed33c5

View File

@@ -30,12 +30,8 @@ def main():
# invoke QML parsing # invoke QML parsing
invokeMenuItem("Tools", "QML/JS", "Run Checks") invokeMenuItem("Tools", "QML/JS", "Run Checks")
# verify that error properly reported # verify that error properly reported
# internal check returns e.g.'Invalid property name "Color". (M16)' test.verify(checkSyntaxError(issuesView, ['Invalid property name "Color". (M16)'], True),
# but if project is CMake based the messages are generated by qmllint "Verifying if error is properly reported")
test.verify(checkSyntaxError(issuesView,
['Binding assigned to "Color", but no property "Color" exists in '
'the current element.'], False, True),
"Verifying if error or warning is properly reported")
# repair error - go to written line # repair error - go to written line
placeCursorToLine(editorArea, testingCodeLine) placeCursorToLine(editorArea, testingCodeLine)
for _ in range(14): for _ in range(14):