forked from qt-creator/qt-creator
Squish: Adapt to changed ui
Change-Id: Icf371af4de7aadbcab5cdf53a8095b26a7150aba Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
@@ -123,10 +123,10 @@ def addHighlighterDefinition(*languages):
|
|||||||
"text='Generic Highlighter'}")
|
"text='Generic Highlighter'}")
|
||||||
clickOnTab(":Options.qt_tabwidget_tabbar_QTabBar", "Generic Highlighter")
|
clickOnTab(":Options.qt_tabwidget_tabbar_QTabBar", "Generic Highlighter")
|
||||||
|
|
||||||
clickButton("{text='Update Definitions' type='QPushButton' name='updateDefinitions' visible='1'}")
|
clickButton("{text='Download Definitions' type='QPushButton' name='downloadDefinitions' visible='1'}")
|
||||||
updateStatus = "{name='updateStatus' type='QLabel' visible='1'}"
|
updateStatus = "{name='updateStatus' type='QLabel' visible='1'}"
|
||||||
waitFor("object.exists(updateStatus)", 5000)
|
waitFor("object.exists(updateStatus)", 5000)
|
||||||
if waitFor('str(findObject(updateStatus).text) == "Update finished"', 5000):
|
if waitFor('str(findObject(updateStatus).text) == "Download finished"', 5000):
|
||||||
test.verify(os.path.exists(syntaxDirectory),
|
test.verify(os.path.exists(syntaxDirectory),
|
||||||
"Directory for syntax highlighter files exists.")
|
"Directory for syntax highlighter files exists.")
|
||||||
xmlFiles = glob.glob(os.path.join(syntaxDirectory, "*.xml"))
|
xmlFiles = glob.glob(os.path.join(syntaxDirectory, "*.xml"))
|
||||||
@@ -157,8 +157,8 @@ def displayHintForHighlighterDefinition(fileName, patterns, lPatterns, added, ad
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
miss = ("A highlight definition was not found for this file. Would you like to update "
|
miss = ("A highlight definition was not found for this file. Would you like to download "
|
||||||
"highlight definition files?")
|
"additional highlight definition files?")
|
||||||
startQC()
|
startQC()
|
||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user