Commit b442a026 authored by Robert Loehning's avatar Robert Loehning

Squish: Generalize stabilization of tst_CSUP04

Change-Id: Id56420161cc80acc4057a56f62af5d33acf2eef7
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent edf75577
......@@ -324,10 +324,9 @@ def validateSearchResult(expectedCount):
rect = resultTreeView.visualRect(chIndex)
doubleClick(resultTreeView, rect.x+5, rect.y+5, 0, Qt.LeftButton)
editor = getEditorForFileSuffix(itemText)
timeout = 2000
if platform.system() == "Darwin":
timeout *= 2
waitFor("lineUnderCursor(editor) == text", timeout)
if not waitFor("lineUnderCursor(editor) == text", 2000):
test.warning("Jumping to search result '%s' is pretty slow." % text)
waitFor("lineUnderCursor(editor) == text", 2000)
test.compare(lineUnderCursor(editor), text)
# this function invokes context menu and command from it
......
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