Commit 26972ade authored by Robert Loehning's avatar Robert Loehning

Squish: Stabilize tst_qml_editor

Avoid false fails with Squish 5.1.3 and Qt 5.4.0 on Windows

Change-Id: I4d330627ed7d93ad7e327aebd9c9d3173e34a8e1
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 09ad56a6
...@@ -153,9 +153,12 @@ def verifyHoveringOnEditor(editor, lines, additionalKeyPresses, expectedTypes, e ...@@ -153,9 +153,12 @@ def verifyHoveringOnEditor(editor, lines, additionalKeyPresses, expectedTypes, e
for ty in additionalKeyPresses: for ty in additionalKeyPresses:
type(editor, ty) type(editor, ty)
rect = editor.cursorRect(editor.textCursor()) rect = editor.cursorRect(editor.textCursor())
expectedToolTip = "{type='%s' visible='1'}" % expectedType
# wait for similar tooltips to disappear
checkIfObjectExists(expectedToolTip, False, 1000, True)
sendEvent("QMouseEvent", editor, QEvent.MouseMove, rect.x+rect.width/2, rect.y+rect.height/2, Qt.NoButton, 0) sendEvent("QMouseEvent", editor, QEvent.MouseMove, rect.x+rect.width/2, rect.y+rect.height/2, Qt.NoButton, 0)
try: try:
tip = waitForObject("{type='%s' visible='1'}" % expectedType) tip = waitForObject(expectedToolTip)
except: except:
tip = None tip = None
if tip == None: if tip == None:
......
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