Squish: Update menu item for 'Find Usage'

Change-Id: I6fdf9f9a1c697ad403473b795d4848aa4e519cb0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2019-02-13 15:32:26 +01:00
committed by Robert Loehning
parent a33bce9e91
commit 605fe1dfd9
3 changed files with 4 additions and 4 deletions

View File

@@ -361,7 +361,7 @@ def invokeFindUsage(editor, line, typeOperation, n=1):
for _ in range(n):
type(editor, typeOperation)
snooze(1)
invokeContextMenuItem(editor, "Find Usages")
invokeContextMenuItem(editor, "Find References to Symbol Under Cursor")
return True
def addBranchWildcardToRoot(rootNode):

View File

@@ -92,7 +92,7 @@ def main():
return
for _ in range(5):
type(editorArea, "<Left>")
invokeContextMenuItem(editorArea, "Find Usages")
invokeContextMenuItem(editorArea, "Find References to Symbol Under Cursor")
# check if usage was properly found
expectedResults = [ExpectedResult("color-animation.qml", 49, "Rectangle {"),
ExpectedResult("color-animation.qml", 109, "Rectangle {"),
@@ -111,7 +111,7 @@ def main():
return
for _ in range(87):
type(editorArea, "<Left>")
invokeMenuItem("Tools", "QML/JS", "Find Usages")
invokeMenuItem("Tools", "QML/JS", "Find References to Symbol Under Cursor")
# check if usage was properly found
expectedResults = [ExpectedResult("color-animation.qml", 50, "anchors { left: parent.left; top: parent.top; right: parent.right; bottom: parent.verticalCenter }"),
ExpectedResult("color-animation.qml", 110, "anchors { left: parent.left; top: parent.verticalCenter; right: parent.right; bottom: parent.bottom }"),

View File

@@ -97,7 +97,7 @@ def __invokeFindUsage__(filename, line, additionalKeyPresses, expectedCount):
return
for ty in additionalKeyPresses:
type(editor, ty)
invokeContextMenuItem(editor, "Find Usages")
invokeContextMenuItem(editor, "Find References to Symbol Under Cursor")
waitForSearchResults()
validateSearchResult(expectedCount)