From 26972ade65a1b256da707b87138ae1a2d67901b5 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Mon, 2 Feb 2015 14:33:14 +0100 Subject: [PATCH] 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 --- tests/system/shared/editor_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/system/shared/editor_utils.py b/tests/system/shared/editor_utils.py index 27dd588e4bf..f3811af5270 100644 --- a/tests/system/shared/editor_utils.py +++ b/tests/system/shared/editor_utils.py @@ -153,9 +153,12 @@ 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 + # 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) try: - tip = waitForObject("{type='%s' visible='1'}" % expectedType) + tip = waitForObject(expectedToolTip) except: tip = None if tip == None: