forked from qt-creator/qt-creator
Squish: Raise some timeouts a bit...
...as these frequently fail on OSX. Change-Id: I200fa1e57e8ec98221c9a82177565d9e60b79356 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
@@ -58,13 +58,13 @@ def ensureChecked(objectName, shouldBeChecked = True, timeout=20000):
|
||||
try:
|
||||
# needed for transition Qt::PartiallyChecked -> Qt::Checked -> Qt::Unchecked
|
||||
clicked = 0
|
||||
while not waitFor('widget.checkState() == targetState', 1000) and clicked < 2:
|
||||
while not waitFor('widget.checkState() == targetState', 1500) and clicked < 2:
|
||||
clickButton(widget)
|
||||
clicked += 1
|
||||
test.verify(waitFor("widget.checkState() == targetState", 1000))
|
||||
except:
|
||||
# widgets not derived from QCheckbox don't have checkState()
|
||||
if not waitFor('widget.checked == shouldBeChecked', 1000):
|
||||
if not waitFor('widget.checked == shouldBeChecked', 1500):
|
||||
mouseClick(widget, 10, 6, 0, Qt.LeftButton)
|
||||
test.verify(waitFor("widget.checked == shouldBeChecked", 1000))
|
||||
test.log("New state for QCheckBox: %s" % state,
|
||||
|
||||
Reference in New Issue
Block a user