summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@theqtcompany.com>2015-02-02 14:33:14 +0100
committerRobert Loehning <robert.loehning@theqtcompany.com>2015-02-02 14:22:54 +0000
commit26972ade65a1b256da707b87138ae1a2d67901b5 (patch)
treee9f546d3aced67ec66669c085ec9d50beb6a471d
parent09ad56a67b8c0ff4fbf78c802450c51646b11021 (diff)
downloadqt-creator-26972ade65a1b256da707b87138ae1a2d67901b5.tar.gz
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>
-rw-r--r--tests/system/shared/editor_utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/system/shared/editor_utils.py b/tests/system/shared/editor_utils.py
index 27dd588e4b..f3811af527 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: