Commit 23fcc1a8 authored by Robert Loehning's avatar Robert Loehning Committed by Robert Löhning
Browse files

Squish: Small improvements



Hoping to fix some fails on Mac

Change-Id: I5e9f47f0714b14a6b87df342de74e7fd41fe94b0
Reviewed-by: default avatarChristian Stenger <christian.stenger@nokia.com>
parent 254812a7
......@@ -31,7 +31,7 @@ def ensureChecked(objectName, shouldBeChecked = True):
else:
state = "unchecked"
test.log("New state for QCheckBox: %s" % state)
test.verify(object.checked == shouldBeChecked)
test.verify(waitFor("object.checked == shouldBeChecked", 1000))
return object
# verify that an object is in an expected enable state. Returns the object.
......
......@@ -35,7 +35,7 @@ def main():
test.compare(editor.textCursor().selectionStart(), 0)
test.compare(editor.textCursor().selectionEnd(), size)
test.compare(editor.textCursor().position(), size)
test.log("Pressing key %s" % key)
test.log("Pressing key: %s" % key.replace("<", "").replace(">", ""))
type(editor, key)
if key == "<Up>":
test.compare(editor.textCursor().selectionStart(), editor.textCursor().selectionEnd())
......@@ -43,7 +43,7 @@ def main():
pos = size
if key == "<Left>":
pos -= 1
if platform.system() != 'Darwin' and JIRA.isBugStillOpen(7215, JIRA.Bug.CREATOR):
if JIRA.isBugStillOpen(7215, JIRA.Bug.CREATOR):
test.warning("Using workaround for %s-%d" % (JIRA.Bug.CREATOR, 7215))
pos = 0
test.compare(editor.textCursor().selectionStart(), pos)
......
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