diff options
Diffstat (limited to 'src/testdir/test_highlight.vim')
| -rw-r--r-- | src/testdir/test_highlight.vim | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/testdir/test_highlight.vim b/src/testdir/test_highlight.vim index 5476008c4..9870b2e6c 100644 --- a/src/testdir/test_highlight.vim +++ b/src/testdir/test_highlight.vim @@ -4,7 +4,7 @@ source view_util.vim source screendump.vim source check.vim source script_util.vim -source vim9.vim +import './vim9.vim' as v9 func ClearDict(d) for k in keys(a:d) @@ -1011,7 +1011,7 @@ func Test_hlget() call assert_equal([], hlget(test_null_string())) call assert_equal([], hlget("")) END - call CheckLegacyAndVim9Success(lines) + call v9.CheckLegacyAndVim9Success(lines) " Test for resolving highlight group links let lines =<< trim END @@ -1042,7 +1042,7 @@ func Test_hlget() call assert_equal([{'id': hlgCid, 'name': 'hlgC', \ 'term': {'bold': v:true}}], hlget('hlgC', v:true)) END - call CheckLegacyAndVim9Success(lines) + call v9.CheckLegacyAndVim9Success(lines) call assert_fails('call hlget([])', 'E1174:') call assert_fails('call hlget("abc", "xyz")', 'E1212:') @@ -1098,7 +1098,7 @@ func Test_hlset() call assert_equal('Search', hlget('NewHLGroup')[0].linksto) highlight clear NewHLGroup END - call CheckLegacyAndVim9Success(lines) + call v9.CheckLegacyAndVim9Success(lines) " Test for clearing the 'term', 'cterm' and 'gui' attributes of a highlight " group. @@ -1117,7 +1117,7 @@ func Test_hlset() \ hlget('myhlg1')) highlight clear myhlg1 END - call CheckLegacyAndVim9Success(lines) + call v9.CheckLegacyAndVim9Success(lines) " Test for setting all the 'term', 'cterm' and 'gui' attributes of a " highlight group @@ -1134,7 +1134,7 @@ func Test_hlset() call assert_equal([{'id': id2, 'name': 'myhlg2', 'gui': attr, \ 'term': attr, 'cterm': attr}], hlget('myhlg2')) END - call CheckLegacyAndVim9Success(lines) + call v9.CheckLegacyAndVim9Success(lines) " Test for clearing some of the 'term', 'cterm' and 'gui' attributes of a " highlight group @@ -1150,7 +1150,7 @@ func Test_hlset() call assert_equal([{'id': id2, 'name': 'myhlg2', 'gui': attr, \ 'term': attr, 'cterm': attr}], hlget('myhlg2')) END - call CheckLegacyAndVim9Success(lines) + call v9.CheckLegacyAndVim9Success(lines) " Test for clearing the attributes and link of a highlight group let lines =<< trim END @@ -1162,7 +1162,7 @@ func Test_hlset() \ hlget('myhlg3')) highlight clear hlg3 END - call CheckLegacyAndVim9Success(lines) + call v9.CheckLegacyAndVim9Success(lines) " Test for setting default attributes for a highlight group let lines =<< trim END @@ -1187,7 +1187,7 @@ func Test_hlset() \ hlget('hlg6')) highlight clear hlg6 END - call CheckLegacyAndVim9Success(lines) + call v9.CheckLegacyAndVim9Success(lines) " Test for setting default links for a highlight group let lines =<< trim END @@ -1217,7 +1217,7 @@ func Test_hlset() \ 'linksto': 'ErrorMsg'}], hlget('hlg9dup')) highlight clear hlg9 END - call CheckLegacyAndVim9Success(lines) + call v9.CheckLegacyAndVim9Success(lines) " Test for force creating a link to a highlight group let lines =<< trim END @@ -1231,7 +1231,7 @@ func Test_hlset() \ 'linksto': 'Search'}], hlget('hlg10')) highlight clear hlg10 END - call CheckLegacyAndVim9Success(lines) + call v9.CheckLegacyAndVim9Success(lines) " Test for empty values of attributes call hlset([{'name': 'hlg11', 'cterm': {}}]) |
