Commit 65f05881 authored by Robert Loehning's avatar Robert Loehning
Browse files

Squish: Stabilize suite_QMLS



Change-Id: I2194054c9c87eeff3b039b34dc4498f5cb0a19e2
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 160bd096
......@@ -47,7 +47,11 @@ def main():
invokeMenuItem("File", "Save All")
# activate menu and apply 'Refactoring - Split initializer'
numLinesExpected = len(str(editorArea.plainText).splitlines()) + 4
invokeContextMenuItem(editorArea, "Refactoring", "Split Initializer")
try:
invokeContextMenuItem(editorArea, "Refactoring", "Split Initializer")
except:
# If menu item is disabled it needs to reopen the menu for updating
invokeContextMenuItem(editorArea, "Refactoring", "Split Initializer")
# wait until refactoring ended
waitFor("len(str(editorArea.plainText).splitlines()) == numLinesExpected", 5000)
# verify if refactoring was properly applied - each part on separate line
......
......@@ -41,7 +41,11 @@ def main():
invokeMenuItem("File", "Save All")
# invoke Refactoring - Wrap Component in Loader
numLinesExpected = len(str(editorArea.plainText).splitlines()) + 10
invokeContextMenuItem(editorArea, "Refactoring", "Wrap Component in Loader")
try:
invokeContextMenuItem(editorArea, "Refactoring", "Wrap Component in Loader")
except:
# If menu item is disabled it needs to reopen the menu for updating
invokeContextMenuItem(editorArea, "Refactoring", "Wrap Component in Loader")
# wait until refactoring ended
waitFor("len(str(editorArea.plainText).splitlines()) >= numLinesExpected", 5000)
# verify if refactoring was properly applied
......
......@@ -40,7 +40,11 @@ def main():
invokeMenuItem("File", "Save All")
# invoke Refactoring - Add a message suppression comment.
numLinesExpected = len(str(editorArea.plainText).splitlines()) + 1
invokeContextMenuItem(editorArea, "Refactoring", "Add a Comment to Suppress This Message")
try:
invokeContextMenuItem(editorArea, "Refactoring", "Add a Comment to Suppress This Message")
except:
# If menu item is disabled it needs to reopen the menu for updating
invokeContextMenuItem(editorArea, "Refactoring", "Add a Comment to Suppress This Message")
# wait until refactoring ended
waitFor("len(str(editorArea.plainText).splitlines()) >= numLinesExpected", 5000)
# verify if refactoring was properly applied
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment