Skip to content

Commit 2347b28

Browse files
committed
add markdown atest
1 parent 39d20d5 commit 2347b28

File tree

5 files changed

+27
-4
lines changed

5 files changed

+27
-4
lines changed

atest/01_Editor.robot

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ Less
3232
${def} = Set Variable xpath:(//span[contains(@class, 'cm-variable-2')][contains(text(), '@width')])[last()]
3333
Editor Shows Features for Language Less example.less Diagnostics=Do not use empty rulesets Jump to Definition=${def}
3434

35+
Markdown
36+
Editor Shows Features for Language Markdown example.md Diagnostics=`Color` is misspelt
37+
3538
Python
3639
${def} = Set Variable xpath:(//span[contains(@class, 'cm-variable')][contains(text(), 'fib')])[last()]
3740
Editor Shows Features for Language Python example.py Diagnostics=multiple spaces after keyword Jump to Definition=${def} Rename=${def}

atest/07_Configuration.robot

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,27 @@ Force Tags feature:config
55
Resource ./Keywords.robot
66

77
*** Test Cases ***
8-
Pyls Configuration
8+
Python
99
[Documentation] pyflakes is enabled by default, but flake8 is not
1010
Settings Should Change Editor Diagnostics Python style.py pyls
1111
... {"pyls": {"plugins": {"flake8": {"enabled": true},"pyflakes": {"enabled": false}}}}
1212
... undefined name 'foo' (pyflakes)
1313
... undefined name 'foo' (flake8)
1414

15-
YAML Schema
15+
YAML
1616
[Documentation] EXPECT FAIL Composer YAML files don't allow a "greetings" key
1717
Settings Should Change Editor Diagnostics YAML example.yaml yaml-language-server
1818
... {"yaml.schemas": {"http://json.schemastore.org/composer": "*"}}
1919
... duplicate key
2020
... Property greetings is not allowed.
2121

22+
Markdown
23+
[Documentation] different englishes spell colou?r differently
24+
Settings Should Change Editor Diagnostics Markdown example.md unified-language-server
25+
... {"unified-language-server":{"remark-parse":{"plugins":[["#remark-retext","#parse-latin"],["#retext-spell","#dictionary-en"]]}}}
26+
... `Color` is misspelt
27+
... `Colour` is misspelt
28+
2229
*** Keywords ***
2330
Clean Up After Working with File and Settings
2431
[Arguments] ${file}
@@ -27,8 +34,8 @@ Clean Up After Working with File and Settings
2734

2835
Settings Should Change Editor Diagnostics
2936
[Arguments] ${language} ${file} ${server} ${settings} ${before} ${after}
30-
${before diagnostic} = Set Variable ${CSS DIAGNOSTIC}\[title="${before}"]
31-
${after diagnostic} = Set Variable ${CSS DIAGNOSTIC}\[title="${after}"]
37+
${before diagnostic} = Set Variable ${CSS DIAGNOSTIC}\[title^="${before}"]
38+
${after diagnostic} = Set Variable ${CSS DIAGNOSTIC}\[title^="${after}"]
3239
${tab} = Set Variable ${JLAB XP DOCK TAB}\[contains(., '${file}')]
3340
${close icon} = Set Variable *[contains(@class, 'm-TabBar-tabCloseIcon')]
3441
Prepare File for Editing ${language} config ${file}

atest/examples/example.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Colour
2+
3+
Color [link][] ![link][]
4+
5+
- list item
6+
7+
[link]: http://example.com

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"dependencies": {},
33
"devDependencies": {
44
"bash-language-server": "^1.6.1",
5+
"dictionary-en": "^3.0.0",
56
"dockerfile-language-server-nodejs": "^0.0.22",
67
"eslint": "^5.16.0",
78
"eslint-config-prettier": "^4.1.0",

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4396,6 +4396,11 @@ dictionary-en-gb@^2.0.0:
43964396
resolved "https://registry.yarnpkg.com/dictionary-en-gb/-/dictionary-en-gb-2.2.1.tgz#8ef21b484b0ce89cdebd60c1b2b65f56df9a475f"
43974397
integrity sha512-kYhSoaD9yOaq/h14DyT/+hyjs5X96kFdnlmy582wr+hCOIRuv1hqAe9gWM+oUQAA1+MH8fAKzyAsTxS8ps/qsg==
43984398

4399+
dictionary-en@^3.0.0:
4400+
version "3.0.0"
4401+
resolved "https://registry.yarnpkg.com/dictionary-en/-/dictionary-en-3.0.0.tgz#c6cdb8cabbde09bd6a4a9349586548e58afff042"
4402+
integrity sha512-GHD7vLcjd3oB878zQ86iDhJLgrylt8U5H0+s8IBIMDW7EXQ+uRoDh27NawU/HMyc5amYaaoLQawwhAJX+TDQaw==
4403+
43994404
diff-match-patch@^1.0.0:
44004405
version "1.0.4"
44014406
resolved "https://registry.yarnpkg.com/diff-match-patch/-/diff-match-patch-1.0.4.tgz#6ac4b55237463761c4daf0dc603eb869124744b1"

0 commit comments

Comments
 (0)