@@ -9,56 +9,55 @@ Test Tags ui:editor aspect:ls:features
99
1010*** Test Cases ***
1111Bash
12- ${def } = Set Variable xpath:(//div[contains(@class, 'cm-line')]//text()[contains(., 'HelloWorld')])[last()]
12+ ${def } = Set Variable lastToken:fib
1313 Editor Shows Features for Language
1414 ... Bash
1515 ... example.sh
1616 ... Diagnostics=Double quote to prevent globbing and word splitting.
1717 ... Jump to Definition=${def }
1818
1919CSS
20- ${def } = Set Variable
21- ... xpath:(//div[contains(@class, 'cm-line')]//text()[contains(., '--some-var')])[last()]
20+ ${def } = Set Variable lastToken:--some-var
2221 Editor Shows Features for Language CSS example.css Diagnostics=Do not use empty rulesets
2322 ... Jump to Definition=${def } Rename=${def }
2423
2524Docker
26- ${def } = Set Variable xpath://div[contains(@class, 'cm-line')]//text()[contains(., ' PLANET')]
25+ ${def } = Set Variable lastToken: PLANET
2726 Wait Until Keyword Succeeds 3x 100ms Editor Shows Features for Language Docker Dockerfile
2827 ... Diagnostics=Instructions should be written in uppercase letters Jump to Definition=${def }
2928 ... Rename=${def }
3029
3130JS
32- ${def } = Set Variable xpath:(//div[contains(@class, 'cm-line')]//text()[contains(., ' fib')])[last()]
31+ ${def } = Set Variable lastToken: fib
3332 Editor Shows Features for Language JS example.js Diagnostics=Expression expected
3433 ... Jump to Definition=${def } Rename=${def }
3534
3635JSON
3736 Editor Shows Features for Language JSON example.json Diagnostics=Duplicate object key
3837
3938JSX
40- ${def } = Set Variable xpath:(//div[contains(@class, 'cm-line')]//text()[contains(., ' hello')])[last()]
39+ ${def } = Set Variable lastToken: hello
4140 Editor Shows Features for Language JSX example.jsx Diagnostics=Expression expected
4241 ... Jump to Definition=${def } Rename=${def }
4342# Julia
44- # ${def} = Set Variable xpath:(//div[contains(@class, 'cm-line')]//text()[contains(., ' add_together')])[last()]
43+ # ${def} = Set Variable lastToken: add_together
4544# Editor Shows Features for Language Julia example.jl Jump to Definition=${def} Rename=${def}
4645
4746LaTeX
4847 [Tags] language:latex
49- ${def } = Set Variable xpath:(//div[contains(@class, 'cm-line')]//span[contains(text(), ' foo')])[last()]
48+ ${def } = Set Variable lastToken: foo
5049 Editor Shows Features for Language LaTeX example.tex Jump to Definition=${def } Rename=${def }
5150
5251Less
53- ${def } = Set Variable xpath:(//div[contains(@class, 'cm-line')]//text()[contains(., '@ width')])[last()]
52+ ${def } = Set Variable lastToken:@ width
5453 Editor Shows Features for Language Less example.less Diagnostics=Do not use empty rulesets
5554 ... Jump to Definition=${def }
5655
5756Markdown
5857 Editor Shows Features for Language Markdown example.md Diagnostics=`Color` is misspelt
5958
6059Python (pylsp)
61- ${def } = Set Variable xpath:(//div[contains(@class, 'cm-line')]//text()[contains(., ' fib')])[last()]
60+ ${def } = Set Variable lastToken: fib
6261 Editor Shows Features for Server
6362 ... pylsp
6463 ... Python
@@ -68,35 +67,33 @@ Python (pylsp)
6867 ... Rename=${def }
6968
7069Python (pyright)
71- ${def } = Set Variable xpath:(//div[contains(@class, 'cm-line')]//text()[contains(., ' fib')])[last()]
70+ ${def } = Set Variable lastToken: fib
7271 Editor Shows Features for Server pyright Python example.py Diagnostics=is not defined (Pyright)
7372 ... Jump to Definition=${def }
7473
7574R
76- ${def } = Set Variable xpath:(//div[contains(@class, 'cm-line')]//text()[contains(., ' fib')])[last()]
75+ ${def } = Set Variable lastToken: fib
7776 Editor Shows Features for Language R example.R Diagnostics=Put spaces around all infix operators
7877 ... Jump to Definition=${def }
7978
8079Robot Framework
8180 [Tags] gh:332
82- ${def } = Set Variable
83- ... xpath:(//div[contains(@class, 'cm-line')]//text()[contains(., 'Special Log')])[last()]
81+ ${def } = Set Variable lastToken:Special Log
8482 Editor Shows Features for Language Robot Framework example.robot Diagnostics=Undefined keyword
8583 ... Jump to Definition=${def }
8684
8785SCSS
88- ${def } = Set Variable
89- ... xpath:(//div[contains(@class, 'cm-line')]//text()[contains(., 'primary-color')])[last()]
86+ ${def } = Set Variable lastToken:primary-color
9087 Editor Shows Features for Language SCSS example.scss Diagnostics=Do not use empty rulesets
9188 ... Jump to Definition=${def }
9289
9390TSX
94- ${def } = Set Variable xpath:(//div[contains(@class, 'cm-line')]//text()[contains(., ' HelloWorld')])[last()]
91+ ${def } = Set Variable lastToken: HelloWorld
9592 Editor Shows Features for Language TSX example.tsx
9693 ... Diagnostics='hello' is declared but its value is never read. Jump to Definition=${def } Rename=${def }
9794
9895TypeScript
99- ${def } = Set Variable xpath:(//div[contains(@class, 'cm-line')]//text()[contains(., ' inc')])[last()]
96+ ${def } = Set Variable lastToken: inc
10097 Editor Shows Features for Language TypeScript example.ts Diagnostics=The left-hand side of an arithmetic
10198 ... Jump to Definition=${def } Rename=${def }
10299
@@ -155,9 +152,7 @@ Editor Content Changed
155152Editor Should Rename
156153 [Arguments] ${symbol }
157154 Set Tags feature:rename
158- ${sel } = Set Variable If "${symbol } ".startswith(("xpath", "css")) ${symbol }
159- ... xpath:(//span[@role="presentation"][contains(., "${symbol } ")])[last()]
160- Open Context Menu Over ${sel }
155+ Open Context Menu Over Token ${symbol }
161156 ${old_content } = Get Editor Content
162157 Capture Page Screenshot 03-rename-0.png
163158 Mouse Over ${MENU RENAME }
0 commit comments