forked from qt-creator/qt-creator
Squish: Run tst_CSUP05 with Clang code model, too
Change-Id: Ief81ba27d8cbd43de5ef9c71b586da8cc372a8bb Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -190,6 +190,7 @@
|
|||||||
:RunSettingsEnvironmentDetails_Utils::DetailsButton {leftWidget=':RunSettingsUseBuildEnvironment_QLabel' text='Details' type='Utils::DetailsButton' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
:RunSettingsEnvironmentDetails_Utils::DetailsButton {leftWidget=':RunSettingsUseBuildEnvironment_QLabel' text='Details' type='Utils::DetailsButton' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
||||||
:RunSettingsUseBuildEnvironment_QLabel {text~='Us(e|ing) <b>Build Environment</b>' type='QLabel' unnamed='1' visible='1'}
|
:RunSettingsUseBuildEnvironment_QLabel {text~='Us(e|ing) <b>Build Environment</b>' type='QLabel' unnamed='1' visible='1'}
|
||||||
:Save Changes.Always save files before build_QCheckBox {name='saveBeforeBuildCheckBox' text='Always save files before build' type='QCheckBox' visible='1' window=':Save Changes_Core::Internal::SaveItemsDialog'}
|
:Save Changes.Always save files before build_QCheckBox {name='saveBeforeBuildCheckBox' text='Always save files before build' type='QCheckBox' visible='1' window=':Save Changes_Core::Internal::SaveItemsDialog'}
|
||||||
|
:Save Changes.Do not Save_QPushButton {text='Do not Save' type='QPushButton' unnamed='1' visible='1' window=':Save Changes_Core::Internal::SaveItemsDialog'}
|
||||||
:Save Changes.Save All_QPushButton {text='Save All' type='QPushButton' unnamed='1' visible='1' window=':Save Changes_Core::Internal::SaveItemsDialog'}
|
:Save Changes.Save All_QPushButton {text='Save All' type='QPushButton' unnamed='1' visible='1' window=':Save Changes_Core::Internal::SaveItemsDialog'}
|
||||||
:Save Changes_Core::Internal::SaveItemsDialog {name='Core__Internal__SaveItemsDialog' type='Core::Internal::SaveItemsDialog' visible='1' windowTitle='Save Changes'}
|
:Save Changes_Core::Internal::SaveItemsDialog {name='Core__Internal__SaveItemsDialog' type='Core::Internal::SaveItemsDialog' visible='1' windowTitle='Save Changes'}
|
||||||
:Select signal.signalList_QTreeWidget {container=':Go to slot.Select signal_QGroupBox' name='signalList' type='QTreeWidget' visible='1'}
|
:Select signal.signalList_QTreeWidget {container=':Go to slot.Select signal_QGroupBox' name='signalList' type='QTreeWidget' visible='1'}
|
||||||
|
@@ -39,13 +39,18 @@ def main():
|
|||||||
# copy example project to temp directory
|
# copy example project to temp directory
|
||||||
templateDir = prepareTemplate(sourceExample)
|
templateDir = prepareTemplate(sourceExample)
|
||||||
examplePath = os.path.join(templateDir, proFile)
|
examplePath = os.path.join(templateDir, proFile)
|
||||||
startApplication("qtcreator" + SettingsPath)
|
startCreatorTryingClang()
|
||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
# open example project
|
# open example project
|
||||||
openQmakeProject(examplePath)
|
openQmakeProject(examplePath)
|
||||||
# wait for parsing to complete
|
# wait for parsing to complete
|
||||||
progressBarWait(30000)
|
progressBarWait(30000)
|
||||||
|
models = iterateAvailableCodeModels()
|
||||||
|
for current in models:
|
||||||
|
if current != models[0]:
|
||||||
|
selectCodeModel(current)
|
||||||
|
test.log("Testing code model: %s" % current)
|
||||||
# open .cpp file in editor
|
# open .cpp file in editor
|
||||||
if not openDocument("propertyanimation.Sources.main\\.cpp"):
|
if not openDocument("propertyanimation.Sources.main\\.cpp"):
|
||||||
test.fatal("Could not open main.cpp")
|
test.fatal("Could not open main.cpp")
|
||||||
@@ -92,6 +97,6 @@ def main():
|
|||||||
clickButton(waitForObject(":Qt Creator.CloseFind_QToolButton"))
|
clickButton(waitForObject(":Qt Creator.CloseFind_QToolButton"))
|
||||||
test.verify(checkIfObjectExists(":*Qt Creator.Find_Find::Internal::FindToolBar", False),
|
test.verify(checkIfObjectExists(":*Qt Creator.Find_Find::Internal::FindToolBar", False),
|
||||||
"Verifying if: Find/Replace tab is closed.")
|
"Verifying if: Find/Replace tab is closed.")
|
||||||
# exit qt creator
|
invokeMenuItem("File", "Close All")
|
||||||
invokeMenuItem("File", "Save All")
|
clickButton(waitForObject(":Save Changes.Do not Save_QPushButton"))
|
||||||
invokeMenuItem("File", "Exit")
|
invokeMenuItem("File", "Exit")
|
||||||
|
Reference in New Issue
Block a user