forked from qt-creator/qt-creator
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:
committed by
Robert Löhning
parent
c4164738b8
commit
af6741b5f2
@@ -45,7 +45,7 @@ def main():
|
|||||||
type(waitForObject(":*Qt Creator.findEdit_Utils::FilterLineEdit"), " xi")
|
type(waitForObject(":*Qt Creator.findEdit_Utils::FilterLineEdit"), " xi")
|
||||||
type(waitForObject(":*Qt Creator.findEdit_Utils::FilterLineEdit"), "<Return>")
|
type(waitForObject(":*Qt Creator.findEdit_Utils::FilterLineEdit"), "<Return>")
|
||||||
__typeAndWaitForAction__(waitForCppEditor(), "<F2>")
|
__typeAndWaitForAction__(waitForCppEditor(), "<F2>")
|
||||||
test.compare(lineUnderCursor(waitForCppEditor()), "extern int xi;")
|
test.compare(lineUnderCursor(waitForCppEditor()), "int xi = 10;")
|
||||||
|
|
||||||
# - Move the cursor to a function call.
|
# - Move the cursor to a function call.
|
||||||
# - Press F2 or select from the menu: Tools / C++ / Follow Symbol under Cursor
|
# - Press F2 or select from the menu: Tools / C++ / Follow Symbol under Cursor
|
||||||
|
Reference in New Issue
Block a user