diff --git a/test/html.vimspec b/test/html.vimspec
index fd1b3ff..d9a77b2 100644
--- a/test/html.vimspec
+++ b/test/html.vimspec
@@ -264,12 +264,18 @@ Describe html
Assert Equals(res, 'foo bar')
End
- It wraps visual word
+ It wraps visual word (skip: ex mode)
+ if mode() ==# 'c'
+ Skip not supported in ex mode
+ endif
let res = ExpandInBuffer("foo $$$$\\ve\\,p\\$$$$bar baz", 'html', 'foo
bar
baz')
Assert Equals(res, 'foo
bar
baz')
End
- It wraps visual multi word
+ It wraps visual multi word (skip: ex mode)
+ if mode() ==# 'c'
+ Skip not supported in ex mode
+ endif
let res = ExpandInBuffer("foo $$$$\\vee\\,p\\$$$$bar baz", 'html', 'foo
bar baz
')
Assert Equals(res, 'foo
bar baz
')
End
@@ -287,17 +293,26 @@ Describe html
Assert Equals(ExpandWord('(div>(label+input))+div', 'html'), "
\n\t\n\t\n
\n\n")
End
- It wraps visual lines with multiplier
+ It wraps visual lines with multiplier (skip: ex mode)
+ if mode() ==# 'c'
+ Skip not supported in ex mode
+ endif
let res = ExpandInBuffer("test1\ntest2\ntest3$$$$\\ggVG\\,ul>li>span*>a\\$$$$", 'html', "
")
End
- It wraps visual lines with input
+ It wraps visual lines with input (skip: ex mode)
+ if mode() ==# 'c'
+ Skip not supported in ex mode
+ endif
let res = ExpandInBuffer("test1\ntest2\ntest3$$$$\\ggVG\\,input[type=input value=$#]*\\$$$$", 'html', "\n\n")
Assert Equals(res, "\n\n")
End
- It wraps visual lines with div id
+ It wraps visual lines with div id (skip: ex mode)
+ if mode() ==# 'c'
+ Skip not supported in ex mode
+ endif
let res = ExpandInBuffer("test1\ntest2\ntest3$$$$\\ggVG\\,div[id=$#]*\\$$$$", 'html', "\n\n")
Assert Equals(res, "\n\n")
End
@@ -334,7 +349,10 @@ Describe html
Assert Equals(ExpandWord('span.item$*2>{item $}', 'html'), "item 1\nitem 2\n")
End
- It wraps visual indented block
+ It wraps visual indented block (skip: ex mode)
+ if mode() ==# 'c'
+ Skip not supported in ex mode
+ endif
let res = ExpandInBuffer("\t$$$$\\ggVG\\,div\\$$$$", 'html', "\t
\n\t\t\n\t
")
Assert Equals(res, "\t
\n\t\t\n\t
")
End
@@ -444,12 +462,18 @@ Describe html
End
Describe update tag
- It adds class
+ It adds class (skip: ex mode)
+ if mode() ==# 'c'
+ Skip not supported in ex mode
+ endif
let res = ExpandInBuffer("u.global\\$$$$3>", 'html', '')
Assert Equals(res, '')
End
- It adds class preserving attribute
+ It adds class preserving attribute (skip: ex mode)
+ if mode() ==# 'c'
+ Skip not supported in ex mode
+ endif
let res = ExpandInBuffer("", 'html', '')
Assert Equals(res, '')
End