Squish: Include binary editor in tests

Change-Id: I0b4fc4e0cb18dcbd569ebdba201bfb9e2596ba5b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Robert Loehning
2016-02-11 20:59:31 +01:00
parent 901d74121a
commit 692261564f
6 changed files with 28 additions and 18 deletions
+3
View File
@@ -266,6 +266,7 @@ def getEditorForFileSuffix(curFile, treeViewSyntax=False):
proEditorSuffixes = ["pro", "pri", "prf"]
glslEditorSuffixes= ["frag", "vert", "fsh", "vsh", "glsl", "shader", "gsh"]
pytEditorSuffixes = ["py", "pyw", "wsgi"]
binEditorSuffixes = ["bin"]
suffix = __getFileSuffix__(curFile)
expected = os.path.basename(curFile)
if treeViewSyntax:
@@ -281,6 +282,8 @@ def getEditorForFileSuffix(curFile, treeViewSyntax=False):
editor = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget")
elif suffix in proEditorSuffixes or suffix in glslEditorSuffixes or suffix in pytEditorSuffixes:
editor = waitForObject(":Qt Creator_TextEditor::TextEditorWidget")
elif suffix in binEditorSuffixes:
editor = waitForObject(":Qt Creator_BinEditor::BinEditorWidget")
else:
test.log("Trying TextEditorWidget (file suffix: %s)" % suffix)
try: