Squish: Updated existing tests to run on Mac

Change-Id: Id4c3bd97f806e502fe64ca9bd4864938d918dc73
Reviewed-on: http://codereview.qt-project.org/6156
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
This commit is contained in:
Christian Stenger
2011-10-05 14:59:12 +02:00
parent dc5e5765d9
commit 8a857ecc29
13 changed files with 60 additions and 33 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ def placeCursorToLine(editor,line,isRegex=False):
found = False
if isRegex:
regex = re.compile(line)
editorRealName = objectMap.realName(editor)
while not found:
currentLine = str(lineUnderCursor(editor)).strip()
if isRegex:
@@ -26,7 +27,7 @@ def placeCursorToLine(editor,line,isRegex=False):
if currentLine==line:
found = True
else:
type(editor, "<Down>")
type(editorRealName, "<Down>")
if oldPosition==editor.textCursor().position():
break
oldPosition = editor.textCursor().position()