SquishTests: Update tst_basic_cpp_support

While the old code model used to jump to the "extern" line,
clangd jumps directly to the linked variable.

Change-Id: I2817d87697b6040afdd538e8e15b4b40ef17e124
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2022-11-09 13:02:54 +01:00
committed by Robert Löhning
parent c4164738b8
commit af6741b5f2

View File

@@ -45,7 +45,7 @@ def main():
type(waitForObject(":*Qt Creator.findEdit_Utils::FilterLineEdit"), " xi")
type(waitForObject(":*Qt Creator.findEdit_Utils::FilterLineEdit"), "<Return>")
__typeAndWaitForAction__(waitForCppEditor(), "<F2>")
test.compare(lineUnderCursor(waitForCppEditor()), "extern int xi;")
test.compare(lineUnderCursor(waitForCppEditor()), "int xi = 10;")
# - Move the cursor to a function call.
# - Press F2 or select from the menu: Tools / C++ / Follow Symbol under Cursor