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