Skip to content

Commit c95b05d

Browse files
committed
add some more hover tests
1 parent 7a163bd commit c95b05d

File tree

1 file changed

+27
-1
lines changed
  • tests/robotcode/language_server/robotframework/parts/data

1 file changed

+27
-1
lines changed

tests/robotcode/language_server/robotframework/parts/data/hover.robot

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,30 @@ first
3434
# ^^^^^^^^^ BuiltIn variable: value == '(builtin variable) ${CURDIR}'
3535
#^^^ Spaces: result is None
3636
Log ${A_VAR_FROM_LIB}
37-
# TODO ^^^^^^^^^^^^^^^^^ BuiltIn variable: value == '(imported variable) ${A_VAR_FROM_LIB}'
37+
# TODO ^^^^^^^^^^^^^^^^^ variable from lib: value == '(imported variable) ${A_VAR_FROM_LIB}'
38+
39+
40+
*** Keywords ***
41+
a keyword
42+
Run Keyword log hi
43+
# ^^^^^^^^^^^ run keyword: re.match(r'.*Run Keyword.*', value)
44+
# ^^^ run keyword argument: re.match(r'.*Log.*', value)
45+
46+
Run Keywords a simple keyword s l e e p a w h i le
47+
# ^^^^^^^^^^^^ run keywords: re.match(r'.*Run Keywords.*', value)
48+
# ^^^^^^^^^^^^^^^^ run keywords simple keyword: re.match(r'.*Run Keywords.*', value)
49+
# ^^^^^^^^^^^^^^^^^^^^ run keywords second parameter with spaces: re.match(r'.*sleep a while.*', value)
50+
51+
Run Keywords log hi AND a simple keyword AND s l e e p a w h i le
52+
# ^^^^^^^^^^^^ run keywords: re.match(r'.*Run Keywords.*', value)
53+
# ^^^ run keywords simple keyword, parameter and AND: re.match(r'.*Log.*', value)
54+
# ^^^^^^^^^^^^^^^^ run keywords simple keyword and AND: re.match(r'.*Run Keywords.*', value)
55+
# ^^^^^^^^^^^^^^^^^^^^ run keywords second parameter with spaces and no AND: re.match(r'.*sleep a while.*', value)
56+
# ^^^ AND: result is None
57+
58+
a simple keyword
59+
Pass Execution
60+
61+
sleep a while
62+
S l e e p 1s
63+
# ^^^^^^^^^ simple keyword with extra spaces and parameter: re.match(r'.*Sleep.*', value)

0 commit comments

Comments
 (0)