Commit 65a07823 authored by Robert Loehning's avatar Robert Loehning
Browse files

Squish: Report error in selectFromFileDialog()



Change-Id: Ib32a1b78106a298996e1d29207998fc8f312208e
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 6ef0c409
...@@ -235,7 +235,8 @@ def selectFromFileDialog(fileName, waitForFile=False): ...@@ -235,7 +235,8 @@ def selectFromFileDialog(fileName, waitForFile=False):
clickButton(findObject("{text='Open' type='QPushButton'}")) clickButton(findObject("{text='Open' type='QPushButton'}"))
if waitForFile: if waitForFile:
fileCombo = waitForObject(":Qt Creator_FilenameQComboBox") 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 # add qt.qch from SDK path
def addHelpDocumentationFromSDK(): def addHelpDocumentationFromSDK():
......
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