forked from qt-creator/qt-creator
Squish: Report error in selectFromFileDialog()
Change-Id: Ib32a1b78106a298996e1d29207998fc8f312208e Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -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():
|
||||||
|
|||||||
Reference in New Issue
Block a user