aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2018-04-19 18:01:40 +0200
committerRobert Loehning <robert.loehning@qt.io>2018-04-20 08:45:31 +0000
commit64b6cb88b0551423a08586de2be72ee152f0079d (patch)
tree8a404810889be92ce2702033ca2e3f3e0fa5279f
parent038e214f904f50a70f9456a1e5737429ae3809a8 (diff)
Squish: Flip bool to its correct meaning
Change-Id: I8de704ca3086789a7c8bcb787e678ba10c42ca9d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--tests/system/suite_HELP/tst_HELP04/test.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/system/suite_HELP/tst_HELP04/test.py b/tests/system/suite_HELP/tst_HELP04/test.py
index 0fc602717c..29fa60c52d 100644
--- a/tests/system/suite_HELP/tst_HELP04/test.py
+++ b/tests/system/suite_HELP/tst_HELP04/test.py
@@ -96,12 +96,12 @@ def main():
try:
# Creator built with Qt <= 5.8.0
resultWidget = waitForObject(':Hits_QCLuceneResultWidget', 5000)
- olderThan59 = False
+ olderThan59 = True
except:
# Creator built with Qt >= 5.9.0
resultWidget = waitForObject(':Hits_QResultWidget', 5000)
- olderThan59 = True
- if not olderThan59 or not JIRA.isBugStillOpen(67737, JIRA.Bug.QT):
+ olderThan59 = False
+ if olderThan59 or not JIRA.isBugStillOpen(67737, JIRA.Bug.QT):
test.verify(waitFor("noMatch in "
"str(resultWidget.plainText)", 2000),
"Verifying if search did not match anything.")
@@ -131,11 +131,11 @@ def main():
verifySelection(searchKeyword)
verifyUrl(urlDictionary[searchKeyword])
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 "
"str(resultWidget.plainText)", 1000),
"Verifying if search did not match anything for: " + searchKeyword)
- if not olderThan59:
+ if olderThan59:
# advanced search - setup
clickButton(waitForObject("{text='+' type='QToolButton' unnamed='1' visible='1' "
"window=':Qt Creator_Core::Internal::MainWindow'}"))