Squish: Report error in selectFromFileDialog()

Change-Id: Ib32a1b78106a298996e1d29207998fc8f312208e
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
Robert Loehning
2013-03-01 11:42:39 +01:00
parent 6ef0c4093b
commit 65a07823ac

View File

@@ -235,7 +235,8 @@ def selectFromFileDialog(fileName, waitForFile=False):
clickButton(findObject("{text='Open' type='QPushButton'}"))
if waitForFile:
fileCombo = waitForObject(":Qt Creator_FilenameQComboBox")
waitFor("str(fileCombo.currentText) in fileName", 5000)
if not waitFor("str(fileCombo.currentText) in fileName", 5000):
test.fail("%s could not be opened in time." % fileName)
# add qt.qch from SDK path
def addHelpDocumentationFromSDK():