Squish: Make sure file was opened in tst_select_all

Change-Id: Iad2c590fd7cc87d8267ecdca515dbef48480e9ed
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
Robert Loehning
2013-02-28 17:15:04 +01:00
parent 34fdf9082b
commit 497eb16455
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -212,7 +212,7 @@ def getOutputFromCmdline(cmdline):
versCall.stdout.close()
return result
def selectFromFileDialog(fileName):
def selectFromFileDialog(fileName, waitForFile=False):
if platform.system() == "Darwin":
snooze(1)
nativeType("<Command+Shift+g>")
@@ -233,6 +233,9 @@ def selectFromFileDialog(fileName):
waitFor("str(pathLine.text)==''")
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():