forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user