forked from qt-creator/qt-creator
Squish: Flip bool to its correct meaning
Change-Id: I8de704ca3086789a7c8bcb787e678ba10c42ca9d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -96,12 +96,12 @@ def main():
|
|||||||
try:
|
try:
|
||||||
# Creator built with Qt <= 5.8.0
|
# Creator built with Qt <= 5.8.0
|
||||||
resultWidget = waitForObject(':Hits_QCLuceneResultWidget', 5000)
|
resultWidget = waitForObject(':Hits_QCLuceneResultWidget', 5000)
|
||||||
olderThan59 = False
|
olderThan59 = True
|
||||||
except:
|
except:
|
||||||
# Creator built with Qt >= 5.9.0
|
# Creator built with Qt >= 5.9.0
|
||||||
resultWidget = waitForObject(':Hits_QResultWidget', 5000)
|
resultWidget = waitForObject(':Hits_QResultWidget', 5000)
|
||||||
olderThan59 = True
|
olderThan59 = False
|
||||||
if not olderThan59 or not JIRA.isBugStillOpen(67737, JIRA.Bug.QT):
|
if olderThan59 or not JIRA.isBugStillOpen(67737, JIRA.Bug.QT):
|
||||||
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.")
|
||||||
@@ -131,11 +131,11 @@ def main():
|
|||||||
verifySelection(searchKeyword)
|
verifySelection(searchKeyword)
|
||||||
verifyUrl(urlDictionary[searchKeyword])
|
verifyUrl(urlDictionary[searchKeyword])
|
||||||
else:
|
else:
|
||||||
if not olderThan59 or not JIRA.isBugStillOpen(67737, JIRA.Bug.QT):
|
if olderThan59 or not JIRA.isBugStillOpen(67737, JIRA.Bug.QT):
|
||||||
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)
|
||||||
if not olderThan59:
|
if olderThan59:
|
||||||
# advanced search - setup
|
# advanced search - setup
|
||||||
clickButton(waitForObject("{text='+' type='QToolButton' unnamed='1' visible='1' "
|
clickButton(waitForObject("{text='+' type='QToolButton' unnamed='1' visible='1' "
|
||||||
"window=':Qt Creator_Core::Internal::MainWindow'}"))
|
"window=':Qt Creator_Core::Internal::MainWindow'}"))
|
||||||
|
Reference in New Issue
Block a user