Mercurial > vim
comparison src/testdir/test_signs.vim @ 10044:46e630ac4380 v7.4.2294
commit https://github.com/vim/vim/commit/64cefedfc834aa4dac54ae5f91ccbc04e2d56bc5
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 29 23:06:28 2016 +0200
patch 7.4.2294
Problem: Sign test fails on MS-Windows when using the distributed zip
archives.
Solution: Create dummy files instead of relying on files in the pixmaps
directory.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 29 Aug 2016 23:15:06 +0200 |
parents | 5a667a3a3743 |
children | 03a6aeea2096 |
comparison
equal
deleted
inserted
replaced
10043:8bf32d5ac14c | 10044:46e630ac4380 |
---|---|
143 call assert_equal('"sign define Sign icon= linehl= text= texthl=', @:) | 143 call assert_equal('"sign define Sign icon= linehl= text= texthl=', @:) |
144 | 144 |
145 call feedkeys(":sign define Sign linehl=Spell\<C-A>\<C-B>\"\<CR>", 'tx') | 145 call feedkeys(":sign define Sign linehl=Spell\<C-A>\<C-B>\"\<CR>", 'tx') |
146 call assert_equal('"sign define Sign linehl=SpellBad SpellCap SpellLocal SpellRare', @:) | 146 call assert_equal('"sign define Sign linehl=SpellBad SpellCap SpellLocal SpellRare', @:) |
147 | 147 |
148 call feedkeys(":sign define Sign icon=../../pixmaps/tb_p\<C-A>\<C-B>\"\<CR>", 'tx') | 148 call writefile(['foo'], 'XsignOne') |
149 call assert_equal('"sign define Sign icon=../../pixmaps/tb_paste.xpm ../../pixmaps/tb_print.xpm', @:) | 149 call writefile(['bar'], 'XsignTwo') |
150 call feedkeys(":sign define Sign icon=Xsig\<C-A>\<C-B>\"\<CR>", 'tx') | |
151 call assert_equal('"sign define Sign icon=XsignOne XsignTwo', @:) | |
152 call delete('XsignOne') | |
153 call delete('XsignTwo') | |
150 | 154 |
151 call feedkeys(":sign undefine \<C-A>\<C-B>\"\<CR>", 'tx') | 155 call feedkeys(":sign undefine \<C-A>\<C-B>\"\<CR>", 'tx') |
152 call assert_equal('"sign undefine Sign1 Sign2', @:) | 156 call assert_equal('"sign undefine Sign1 Sign2', @:) |
153 | 157 |
154 call feedkeys(":sign place 1 \<C-A>\<C-B>\"\<CR>", 'tx') | 158 call feedkeys(":sign place 1 \<C-A>\<C-B>\"\<CR>", 'tx') |