forked from qt-creator/qt-creator
Squish: Expand tests to python editor
Change-Id: I1c3062f2802531d7a6e2f3c2b75645432ba364a4 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -121,6 +121,7 @@
|
||||
:Qt Creator_HelpSelector_QComboBox {occurrence='3' type='QComboBox' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
||||
:Qt Creator_Issues_Core::Internal::OutputPaneToggleButton {occurrence='1' type='Core::Internal::OutputPaneToggleButton' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
||||
:Qt Creator_ProFileEditorWidget {type='Qt4ProjectManager::Internal::ProFileEditorWidget' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
||||
:Qt Creator_PythonEditor::EditorWidget {type='PythonEditor::EditorWidget' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
||||
:Qt Creator_QDeclarativeView {type='QDeclarativeView' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
||||
:Qt Creator_QHelpContentWidget {type='QHelpContentWidget' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
||||
:Qt Creator_QTableView {type='QTableView' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'}
|
||||
|
||||
@@ -244,6 +244,7 @@ def getEditorForFileSuffix(curFile):
|
||||
qmlEditorSuffixes = ["qml", "qmlproject", "js", "qs", "qtt"]
|
||||
proEditorSuffixes = ["pro", "pri", "prf"]
|
||||
glslEditorSuffixes= ["frag", "vert", "fsh", "vsh", "glsl", "shader", "gsh"]
|
||||
pytEditorSuffixes = ["py", "pyw", "wsgi"]
|
||||
suffix = __getFileSuffix__(curFile)
|
||||
if suffix in cppEditorSuffixes:
|
||||
editor = waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")
|
||||
@@ -254,6 +255,8 @@ def getEditorForFileSuffix(curFile):
|
||||
elif suffix in glslEditorSuffixes:
|
||||
editor = waitForObject("{type='GLSLEditor::GLSLTextEditorWidget' unnamed='1' "
|
||||
"visible='1' window=':Qt Creator_Core::Internal::MainWindow'}")
|
||||
elif suffix in pytEditorSuffixes:
|
||||
editor = waitForObject(":Qt Creator_PythonEditor::EditorWidget")
|
||||
else:
|
||||
test.log("Trying PlainTextEditor (file suffix: %s)" % suffix)
|
||||
try:
|
||||
|
||||
@@ -6,3 +6,4 @@
|
||||
"creator/tests/manual/cplusplus-frontend/conf.c++"
|
||||
"creator/src/plugins/coreplugin/basefilewizard.cpp"
|
||||
"creator/src/plugins/coreplugin/basefilewizard.h"
|
||||
"creator/tests/system/suite_debugger/tst_simple_debug/test.py"
|
||||
|
||||
|
Reference in New Issue
Block a user