aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/digraphs_spec.lua
diff options
context:
space:
mode:
authorJakson Alves de Aquino <jalvesaq@gmail.com>2015-05-18 00:03:17 -0400
committerJustin M. Keyes <justinkz@gmail.com>2018-05-01 11:33:50 +0200
commit58b210e1146f5fe3dd1affe4ab81a3cf48ae27ab (patch)
treeea51f84f788fa6cca2e48bc31e7bf02d08b2bede /test/functional/ex_cmds/digraphs_spec.lua
parent5d6732ff094a514e8a2dd006b92a926605ecdfa8 (diff)
downloadrneovim-58b210e1146f5fe3dd1affe4ab81a3cf48ae27ab.tar.gz
rneovim-58b210e1146f5fe3dd1affe4ab81a3cf48ae27ab.tar.bz2
rneovim-58b210e1146f5fe3dd1affe4ab81a3cf48ae27ab.zip
:digraphs : highlight with hl-SpecialKey #2690
closes #2690
Diffstat (limited to 'test/functional/ex_cmds/digraphs_spec.lua')
-rw-r--r--test/functional/ex_cmds/digraphs_spec.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/functional/ex_cmds/digraphs_spec.lua b/test/functional/ex_cmds/digraphs_spec.lua
new file mode 100644
index 0000000000..f2d0b76739
--- /dev/null
+++ b/test/functional/ex_cmds/digraphs_spec.lua
@@ -0,0 +1,38 @@
+local helpers = require('test.functional.helpers')(after_each)
+local clear = helpers.clear
+local feed = helpers.feed
+local Screen = require('test.functional.ui.screen')
+
+describe(':digraphs', function()
+ local screen
+ before_each(function()
+ clear()
+ screen = Screen.new(65, 8)
+ screen:set_default_attr_ids({
+ [1] = {bold = true, foreground = Screen.colors.Blue1},
+ [2] = {foreground = Screen.colors.Grey100, background = Screen.colors.Red},
+ [3] = {bold = true, foreground = Screen.colors.SeaGreen4},
+ [4] = {bold = true},
+ [5] = {background = Screen.colors.LightGrey},
+ [6] = {foreground = Screen.colors.Blue1},
+ [7] = {bold = true, reverse = true},
+ })
+ screen:attach()
+ end)
+
+ it('displays digraphs', function()
+ feed(':digraphs<CR>')
+ screen:expect([[
+ A@ {6:Å} 197 E` {6:È} 200 E^ {6:Ê} 202 E" {6:Ë} 203 I` {6:Ì} 204 |
+ I^ {6:Î} 206 I" {6:Ï} 207 N~ {6:Ñ} 209 O` {6:Ò} 210 O^ {6:Ô} 212 |
+ O~ {6:Õ} 213 /\ {6:×} 215 U` {6:Ù} 217 U^ {6:Û} 219 Ip {6:Þ} 222 |
+ a` {6:à} 224 a^ {6:â} 226 a~ {6:ã} 227 a" {6:ä} 228 a@ {6:å} 229 |
+ e` {6:è} 232 e^ {6:ê} 234 e" {6:ë} 235 i` {6:ì} 236 i^ {6:î} 238 |
+ n~ {6:ñ} 241 o` {6:ò} 242 o^ {6:ô} 244 o~ {6:õ} 245 u` {6:ù} 249 |
+ u^ {6:û} 251 y" {6:ÿ} 255 |
+ {3:Press ENTER or type command to continue}^ |
+ ]])
+ end)
+
+end)
+