Squish: Small fixes in tst_APTW03

Change-Id: I3ef8de3c994b34368cbe218e8a5141e47e08723f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2019-02-11 16:47:33 +01:00
parent 9ad1d54e14
commit c2f57e51d6

View File

@@ -93,10 +93,9 @@ def main():
if not virtualFunctionsAdded:
checkLastBuild(True, False)
if not openDocument("%s.Headers.%s\.h" % (projectName, className.lower())):
test.fail("Could not open %s.h - continuing." % className.lower())
test.fatal("Could not open %s.h - continuing." % className.lower())
continue
editor = getEditorForFileSuffix("%s.h" % className.lower())
str(editor.plainText)
placeCursorToLine(editor, "class %s.*" % className, True)
snooze(4) # avoid timing issue with the parser
invokeContextMenuItem(editor, "Refactor", "Insert Virtual Functions of Base Classes")
@@ -110,7 +109,7 @@ def main():
"Verifying whether create() declaration has been added to the header.")
if not openDocument("%s.Sources.%s\.cpp" % (projectName, className.lower())):
test.fail("Could not open %s.cpp - continuing." % className.lower())
test.fatal("Could not open %s.cpp - continuing." % className.lower())
continue
editor = getEditorForFileSuffix("%s.cpp" % className.lower())
modifiedContent = str(editor.plainText)