forked from qt-creator/qt-creator
SquishTests: Try stabilizing tst_generic_highlighter
Change-Id: I12e29f2886d22ce03a1a2eb62d5c776cd894d359 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -99,10 +99,12 @@ def addHighlighterDefinition(*languages):
|
||||
"text='Generic Highlighter'}")
|
||||
clickOnTab(":Options.qt_tabwidget_tabbar_QTabBar", "Generic Highlighter")
|
||||
|
||||
test.log("Trying to download definitions...")
|
||||
clickButton("{text='Download Definitions' type='QPushButton' unnamed='1' visible='1'}")
|
||||
updateStatus = "{name='updateStatus' type='QLabel' visible='1'}"
|
||||
waitFor("object.exists(updateStatus)", 5000)
|
||||
if waitFor('str(findObject(updateStatus).text) == "Download finished"', 5000):
|
||||
if waitFor('str(findObject(updateStatus).text) == "Download finished"', 20000):
|
||||
test.log("Received definitions")
|
||||
test.verify(os.path.exists(syntaxDirectory),
|
||||
"Directory for syntax highlighter files exists.")
|
||||
xmlFiles = glob.glob(os.path.join(syntaxDirectory, "*.xml"))
|
||||
|
Reference in New Issue
Block a user