From 605fe1dfd9837ee777a8b89922fb544af272210a Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 13 Feb 2019 15:32:26 +0100 Subject: [PATCH] Squish: Update menu item for 'Find Usage' Change-Id: I6fdf9f9a1c697ad403473b795d4848aa4e519cb0 Reviewed-by: Christian Stenger Reviewed-by: Robert Loehning --- tests/system/shared/editor_utils.py | 2 +- tests/system/suite_QMLS/tst_QMLS03/test.py | 4 ++-- tests/system/suite_editors/tst_qml_editor/test.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/system/shared/editor_utils.py b/tests/system/shared/editor_utils.py index 25042f95411..87c51a523c5 100644 --- a/tests/system/shared/editor_utils.py +++ b/tests/system/shared/editor_utils.py @@ -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): diff --git a/tests/system/suite_QMLS/tst_QMLS03/test.py b/tests/system/suite_QMLS/tst_QMLS03/test.py index 2583302c4ba..62251a9aeeb 100644 --- a/tests/system/suite_QMLS/tst_QMLS03/test.py +++ b/tests/system/suite_QMLS/tst_QMLS03/test.py @@ -92,7 +92,7 @@ def main(): return for _ in range(5): type(editorArea, "") - 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, "") - 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 }"), diff --git a/tests/system/suite_editors/tst_qml_editor/test.py b/tests/system/suite_editors/tst_qml_editor/test.py index 53ddc0884dd..e43545a5541 100644 --- a/tests/system/suite_editors/tst_qml_editor/test.py +++ b/tests/system/suite_editors/tst_qml_editor/test.py @@ -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)