Commit 497eb164 authored by Robert Loehning's avatar Robert Loehning
Browse files

Squish: Make sure file was opened in tst_select_all

Change-Id: Iad2c590fd7cc87d8267ecdca515dbef48480e9ed
Reviewed-by: default avatarChristian Stenger <>
parent 34fdf908
......@@ -212,7 +212,7 @@ def getOutputFromCmdline(cmdline):
return result
def selectFromFileDialog(fileName):
def selectFromFileDialog(fileName, waitForFile=False):
if platform.system() == "Darwin":
......@@ -233,6 +233,9 @@ def selectFromFileDialog(fileName):
replaceEditorContent(pathLine, fName)
clickButton(findObject("{text='Open' type='QPushButton'}"))
if waitForFile:
fileCombo = waitForObject(":Qt Creator_FilenameQComboBox")
waitFor("str(fileCombo.currentText) in fileName", 5000)
# add qt.qch from SDK path
def addHelpDocumentationFromSDK():
......@@ -23,7 +23,7 @@ def main():
test.log("Opening file %s" % currentFile)
size = charactersInFile(currentFile)
invokeMenuItem("File", "Open File or Project...")
selectFromFileDialog(currentFile, True)
editor = getEditorForFileSuffix(currentFile)
if editor == None:
test.fatal("Could not get the editor for '%s'" % currentFile,
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