forked from qt-creator/qt-creator
Squish: Fix reading tooltips in tst_qml_editor
Change-Id: Ie65752d2c8c87c3802c810b98ffe7b122549c762 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -153,7 +153,7 @@ def verifyHoveringOnEditor(editor, lines, additionalKeyPresses, expectedTypes, e
|
||||
for ty in additionalKeyPresses:
|
||||
type(editor, ty)
|
||||
rect = editor.cursorRect(editor.textCursor())
|
||||
expectedToolTip = "{type='%s' visible='1'}" % expectedType
|
||||
expectedToolTip = "{type='QTipLabel' visible='1'}"
|
||||
# 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)
|
||||
|
||||
Reference in New Issue
Block a user