Commit c3a23cb8 authored by Christian Stenger's avatar Christian Stenger

Squish: Rewrite checkQtCreatorHelpVersion()

Change-Id: I994379476ab52df75a4a34a8e0db025ee2f3df70
Reviewed-by: default avatarRobert Loehning <>
parent b071a0ad
...@@ -57,11 +57,12 @@ def getQtCreatorVersionFromFile(): ...@@ -57,11 +57,12 @@ def getQtCreatorVersionFromFile():
def checkQtCreatorHelpVersion(expectedVersion): def checkQtCreatorHelpVersion(expectedVersion):
switchViewTo(ViewConstants.HELP) switchViewTo(ViewConstants.HELP)
try: try:
creatorManual = waitForObject("{column='0' container=':Qt Creator_QHelpContentWidget' " helpContentWidget = waitForObject(':Qt Creator_QHelpContentWidget', 5000)
"text?='Qt Creator Manual*' type='QModelIndex'}", 5000) items = dumpItems(helpContentWidget.model())[18:], expectedVersion, x: x.startswith('Qt Creator Manual'), items)[0],
"Verifying whether manual uses expected version, text is: %s" % creatorManual.text) 'Qt Creator Manual %s' % expectedVersion,
except LookupError: 'Verifying whether manual uses expected version.')
except:"Missing Qt Creator Manual.")"Missing Qt Creator Manual.")
def main(): def main():
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment