Squish: Remove outdated condition

Change-Id: I89029f50cc0a303111f9960eac3f3c17b4c05fb0
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2022-02-28 15:01:06 +01:00
parent 0803390a83
commit 869ad16d04

View File

@@ -84,10 +84,9 @@ def main():
clickButton(waitForObject("{text='Search' type='QPushButton' unnamed='1' visible='1' " clickButton(waitForObject("{text='Search' type='QPushButton' unnamed='1' visible='1' "
"window=':Qt Creator_Core::Internal::MainWindow'}")) "window=':Qt Creator_Core::Internal::MainWindow'}"))
resultWidget = waitForObject(':Hits_QResultWidget', 5000) resultWidget = waitForObject(':Hits_QResultWidget', 5000)
if os.getenv("SYSTEST_BUILT_WITH_QT_5_13_1_OR_NEWER", "0") == "1": test.verify(waitFor("noMatch in "
test.verify(waitFor("noMatch in " "str(resultWidget.plainText)", 2000),
"str(resultWidget.plainText)", 2000), "Verifying if search did not match anything.")
"Verifying if search did not match anything.")
# workaround for "endless waiting cursor" # workaround for "endless waiting cursor"
mouseClick(waitForObject("{column='0' container=':Qt Creator_QHelpContentWidget' " mouseClick(waitForObject("{column='0' container=':Qt Creator_QHelpContentWidget' "
"text='Qt Reference Documentation' type='QModelIndex'}")) "text='Qt Reference Documentation' type='QModelIndex'}"))
@@ -115,9 +114,8 @@ def main():
if not (searchKeyword == "QODBC" and JIRA.isBugStillOpen(10331)): if not (searchKeyword == "QODBC" and JIRA.isBugStillOpen(10331)):
verifyUrl(urlDictionary[searchKeyword]) verifyUrl(urlDictionary[searchKeyword])
else: else:
if os.getenv("SYSTEST_BUILT_WITH_QT_5_13_1_OR_NEWER", "0") == "1": test.verify(waitFor("noMatch in "
test.verify(waitFor("noMatch in " "str(resultWidget.plainText)", 1000),
"str(resultWidget.plainText)", 1000), "Verifying if search did not match anything for: " + searchKeyword)
"Verifying if search did not match anything for: " + searchKeyword)
# exit # exit
invokeMenuItem("File", "Exit") invokeMenuItem("File", "Exit")