forked from qt-creator/qt-creator
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: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user