Bram Moolenaar | 98aefe7 | 2018-12-13 22:20:09 +0100 | [diff] [blame] | 1 | " Tests for defining text property types and adding text properties to the |
| 2 | " buffer. |
| 3 | |
| 4 | if !has('textprop') |
| 5 | finish |
| 6 | endif |
| 7 | |
Bram Moolenaar | c6d86dc | 2018-12-31 13:57:36 +0100 | [diff] [blame] | 8 | source screendump.vim |
| 9 | |
Bram Moolenaar | b9c67a5 | 2019-01-01 19:49:20 +0100 | [diff] [blame] | 10 | " test length zero |
| 11 | |
Bram Moolenaar | 98aefe7 | 2018-12-13 22:20:09 +0100 | [diff] [blame] | 12 | func Test_proptype_global() |
| 13 | call prop_type_add('comment', {'highlight': 'Directory', 'priority': 123, 'start_incl': 1, 'end_incl': 1}) |
| 14 | let proptypes = prop_type_list() |
| 15 | call assert_equal(1, len(proptypes)) |
| 16 | call assert_equal('comment', proptypes[0]) |
| 17 | |
| 18 | let proptype = prop_type_get('comment') |
| 19 | call assert_equal('Directory', proptype['highlight']) |
| 20 | call assert_equal(123, proptype['priority']) |
| 21 | call assert_equal(1, proptype['start_incl']) |
| 22 | call assert_equal(1, proptype['end_incl']) |
| 23 | |
| 24 | call prop_type_delete('comment') |
| 25 | call assert_equal(0, len(prop_type_list())) |
| 26 | |
| 27 | call prop_type_add('one', {}) |
| 28 | call assert_equal(1, len(prop_type_list())) |
| 29 | let proptype = prop_type_get('one') |
| 30 | call assert_false(has_key(proptype, 'highlight')) |
| 31 | call assert_equal(0, proptype['priority']) |
| 32 | call assert_equal(0, proptype['start_incl']) |
| 33 | call assert_equal(0, proptype['end_incl']) |
| 34 | |
| 35 | call prop_type_add('two', {}) |
| 36 | call assert_equal(2, len(prop_type_list())) |
| 37 | call prop_type_delete('one') |
| 38 | call assert_equal(1, len(prop_type_list())) |
| 39 | call prop_type_delete('two') |
| 40 | call assert_equal(0, len(prop_type_list())) |
| 41 | endfunc |
| 42 | |
| 43 | func Test_proptype_buf() |
| 44 | let bufnr = bufnr('') |
| 45 | call prop_type_add('comment', {'bufnr': bufnr, 'highlight': 'Directory', 'priority': 123, 'start_incl': 1, 'end_incl': 1}) |
| 46 | let proptypes = prop_type_list({'bufnr': bufnr}) |
| 47 | call assert_equal(1, len(proptypes)) |
| 48 | call assert_equal('comment', proptypes[0]) |
| 49 | |
| 50 | let proptype = prop_type_get('comment', {'bufnr': bufnr}) |
| 51 | call assert_equal('Directory', proptype['highlight']) |
| 52 | call assert_equal(123, proptype['priority']) |
| 53 | call assert_equal(1, proptype['start_incl']) |
| 54 | call assert_equal(1, proptype['end_incl']) |
| 55 | |
| 56 | call prop_type_delete('comment', {'bufnr': bufnr}) |
| 57 | call assert_equal(0, len(prop_type_list({'bufnr': bufnr}))) |
| 58 | |
| 59 | call prop_type_add('one', {'bufnr': bufnr}) |
| 60 | let proptype = prop_type_get('one', {'bufnr': bufnr}) |
| 61 | call assert_false(has_key(proptype, 'highlight')) |
| 62 | call assert_equal(0, proptype['priority']) |
| 63 | call assert_equal(0, proptype['start_incl']) |
| 64 | call assert_equal(0, proptype['end_incl']) |
| 65 | |
| 66 | call prop_type_add('two', {'bufnr': bufnr}) |
| 67 | call assert_equal(2, len(prop_type_list({'bufnr': bufnr}))) |
| 68 | call prop_type_delete('one', {'bufnr': bufnr}) |
| 69 | call assert_equal(1, len(prop_type_list({'bufnr': bufnr}))) |
| 70 | call prop_type_delete('two', {'bufnr': bufnr}) |
| 71 | call assert_equal(0, len(prop_type_list({'bufnr': bufnr}))) |
| 72 | endfunc |
| 73 | |
| 74 | func AddPropTypes() |
| 75 | call prop_type_add('one', {}) |
| 76 | call prop_type_add('two', {}) |
| 77 | call prop_type_add('three', {}) |
| 78 | call prop_type_add('whole', {}) |
| 79 | endfunc |
| 80 | |
| 81 | func DeletePropTypes() |
| 82 | call prop_type_delete('one') |
| 83 | call prop_type_delete('two') |
| 84 | call prop_type_delete('three') |
| 85 | call prop_type_delete('whole') |
| 86 | endfunc |
| 87 | |
| 88 | func SetupPropsInFirstLine() |
| 89 | call setline(1, 'one two three') |
| 90 | call prop_add(1, 1, {'length': 3, 'id': 11, 'type': 'one'}) |
| 91 | call prop_add(1, 5, {'length': 3, 'id': 12, 'type': 'two'}) |
| 92 | call prop_add(1, 8, {'length': 5, 'id': 13, 'type': 'three'}) |
| 93 | call prop_add(1, 1, {'length': 13, 'id': 14, 'type': 'whole'}) |
| 94 | endfunc |
| 95 | |
| 96 | let s:expected_props = [{'col': 1, 'length': 13, 'id': 14, 'type': 'whole', 'start': 1, 'end': 1}, |
| 97 | \ {'col': 1, 'length': 3, 'id': 11, 'type': 'one', 'start': 1, 'end': 1}, |
| 98 | \ {'col': 5, 'length': 3, 'id': 12, 'type': 'two', 'start': 1, 'end': 1}, |
| 99 | \ {'col': 8, 'length': 5, 'id': 13, 'type': 'three', 'start': 1, 'end': 1}, |
| 100 | \ ] |
| 101 | |
| 102 | func Test_prop_add() |
| 103 | new |
| 104 | call AddPropTypes() |
| 105 | call SetupPropsInFirstLine() |
| 106 | call assert_equal(s:expected_props, prop_list(1)) |
| 107 | call assert_fails("call prop_add(10, 1, {'length': 1, 'id': 14, 'type': 'whole'})", 'E966:') |
| 108 | call assert_fails("call prop_add(1, 22, {'length': 1, 'id': 14, 'type': 'whole'})", 'E964:') |
| 109 | |
| 110 | " Insert a line above, text props must still be there. |
| 111 | call append(0, 'empty') |
| 112 | call assert_equal(s:expected_props, prop_list(2)) |
| 113 | " Delete a line above, text props must still be there. |
| 114 | 1del |
| 115 | call assert_equal(s:expected_props, prop_list(1)) |
| 116 | |
Bram Moolenaar | b9c67a5 | 2019-01-01 19:49:20 +0100 | [diff] [blame] | 117 | " Prop without length or end column is zero length |
| 118 | call prop_clear(1) |
| 119 | call prop_add(1, 5, {'type': 'two'}) |
| 120 | let expected = [{'col': 5, 'length': 0, 'type': 'two', 'id': 0, 'start': 1, 'end': 1}] |
| 121 | call assert_equal(expected, prop_list(1)) |
| 122 | |
Bram Moolenaar | 98aefe7 | 2018-12-13 22:20:09 +0100 | [diff] [blame] | 123 | call DeletePropTypes() |
| 124 | bwipe! |
| 125 | endfunc |
| 126 | |
| 127 | func Test_prop_remove() |
| 128 | new |
| 129 | call AddPropTypes() |
| 130 | call SetupPropsInFirstLine() |
| 131 | let props = deepcopy(s:expected_props) |
| 132 | call assert_equal(props, prop_list(1)) |
| 133 | |
| 134 | " remove by id |
| 135 | call prop_remove({'id': 12}, 1) |
| 136 | unlet props[2] |
| 137 | call assert_equal(props, prop_list(1)) |
| 138 | |
| 139 | " remove by type |
| 140 | call prop_remove({'type': 'one'}, 1) |
| 141 | unlet props[1] |
| 142 | call assert_equal(props, prop_list(1)) |
| 143 | |
| 144 | call DeletePropTypes() |
| 145 | bwipe! |
| 146 | endfunc |
| 147 | |
| 148 | func Test_prop_add_remove_buf() |
| 149 | new |
| 150 | let bufnr = bufnr('') |
| 151 | call AddPropTypes() |
| 152 | call setline(1, 'one two three') |
| 153 | wincmd w |
| 154 | call prop_add(1, 1, {'length': 3, 'id': 11, 'type': 'one', 'bufnr': bufnr}) |
| 155 | call prop_add(1, 5, {'length': 3, 'id': 12, 'type': 'two', 'bufnr': bufnr}) |
| 156 | call prop_add(1, 11, {'length': 3, 'id': 13, 'type': 'three', 'bufnr': bufnr}) |
| 157 | |
| 158 | let props = [ |
| 159 | \ {'col': 1, 'length': 3, 'id': 11, 'type': 'one', 'start': 1, 'end': 1}, |
| 160 | \ {'col': 5, 'length': 3, 'id': 12, 'type': 'two', 'start': 1, 'end': 1}, |
| 161 | \ {'col': 11, 'length': 3, 'id': 13, 'type': 'three', 'start': 1, 'end': 1}, |
| 162 | \] |
| 163 | call assert_equal(props, prop_list(1, {'bufnr': bufnr})) |
| 164 | |
| 165 | " remove by id |
| 166 | call prop_remove({'id': 12, 'bufnr': bufnr}, 1) |
| 167 | unlet props[1] |
| 168 | call assert_equal(props, prop_list(1, {'bufnr': bufnr})) |
| 169 | |
| 170 | " remove by type |
| 171 | call prop_remove({'type': 'one', 'bufnr': bufnr}, 1) |
| 172 | unlet props[0] |
| 173 | call assert_equal(props, prop_list(1, {'bufnr': bufnr})) |
| 174 | |
| 175 | call DeletePropTypes() |
| 176 | wincmd w |
| 177 | bwipe! |
| 178 | endfunc |
| 179 | |
Bram Moolenaar | 33c8ca9 | 2019-01-02 18:00:27 +0100 | [diff] [blame^] | 180 | func Test_prop_backspace() |
| 181 | new |
| 182 | set bs=2 |
| 183 | call setline(1, 'xonex xtwoxx') |
| 184 | call AddPropTypes() |
| 185 | call prop_add(1, 2, {'length': 3, 'id': 11, 'type': 'one'}) |
| 186 | call prop_add(1, 8, {'length': 3, 'id': 12, 'type': 'two'}) |
| 187 | let expected = [ |
| 188 | \ {'col': 2, 'length': 3, 'id': 11, 'type': 'one', 'start': 1, 'end': 1}, |
| 189 | \ {'col': 8, 'length': 3, 'id': 12, 'type': 'two', 'start': 1, 'end': 1}, |
| 190 | \] |
| 191 | call assert_equal(expected, prop_list(1)) |
| 192 | |
| 193 | exe "normal 0li\<BS>\<Esc>fxli\<BS>\<Esc>" |
| 194 | call assert_equal('one xtwoxx', getline(1)) |
| 195 | let expected[0].col = 1 |
| 196 | let expected[1].col = 6 |
| 197 | call assert_equal(expected, prop_list(1)) |
| 198 | |
| 199 | call DeletePropTypes() |
| 200 | bwipe! |
| 201 | set bs& |
| 202 | endfunc |
Bram Moolenaar | 98aefe7 | 2018-12-13 22:20:09 +0100 | [diff] [blame] | 203 | |
| 204 | func Test_prop_clear() |
| 205 | new |
| 206 | call AddPropTypes() |
| 207 | call SetupPropsInFirstLine() |
| 208 | call assert_equal(s:expected_props, prop_list(1)) |
| 209 | |
| 210 | call prop_clear(1) |
| 211 | call assert_equal([], prop_list(1)) |
| 212 | |
| 213 | call DeletePropTypes() |
| 214 | bwipe! |
| 215 | endfunc |
| 216 | |
| 217 | func Test_prop_clear_buf() |
| 218 | new |
| 219 | call AddPropTypes() |
| 220 | call SetupPropsInFirstLine() |
| 221 | let bufnr = bufnr('') |
| 222 | wincmd w |
| 223 | call assert_equal(s:expected_props, prop_list(1, {'bufnr': bufnr})) |
| 224 | |
| 225 | call prop_clear(1, 1, {'bufnr': bufnr}) |
| 226 | call assert_equal([], prop_list(1, {'bufnr': bufnr})) |
| 227 | |
| 228 | wincmd w |
| 229 | call DeletePropTypes() |
| 230 | bwipe! |
| 231 | endfunc |
| 232 | |
Bram Moolenaar | c1a9bc1 | 2018-12-28 21:59:29 +0100 | [diff] [blame] | 233 | " Setup a three line prop in lines 2 - 4. |
| 234 | " Add short props in line 1 and 5. |
| 235 | func Setup_three_line_prop() |
| 236 | new |
| 237 | call setline(1, ['one', 'twotwo', 'three', 'fourfour', 'five']) |
| 238 | call prop_add(1, 2, {'length': 1, 'type': 'comment'}) |
| 239 | call prop_add(2, 4, {'end_lnum': 4, 'end_col': 5, 'type': 'comment'}) |
| 240 | call prop_add(5, 2, {'length': 1, 'type': 'comment'}) |
| 241 | endfunc |
| 242 | |
Bram Moolenaar | e3d31b0 | 2018-12-24 23:07:04 +0100 | [diff] [blame] | 243 | func Test_prop_multiline() |
| 244 | call prop_type_add('comment', {'highlight': 'Directory'}) |
| 245 | new |
| 246 | call setline(1, ['xxxxxxx', 'yyyyyyyyy', 'zzzzzzzz']) |
| 247 | |
| 248 | " start halfway line 1, end halfway line 3 |
| 249 | call prop_add(1, 3, {'end_lnum': 3, 'end_col': 5, 'type': 'comment'}) |
| 250 | let expect1 = {'col': 3, 'length': 6, 'type': 'comment', 'start': 1, 'end': 0, 'id': 0} |
| 251 | call assert_equal([expect1], prop_list(1)) |
| 252 | let expect2 = {'col': 1, 'length': 10, 'type': 'comment', 'start': 0, 'end': 0, 'id': 0} |
| 253 | call assert_equal([expect2], prop_list(2)) |
Bram Moolenaar | b9c67a5 | 2019-01-01 19:49:20 +0100 | [diff] [blame] | 254 | let expect3 = {'col': 1, 'length': 4, 'type': 'comment', 'start': 0, 'end': 1, 'id': 0} |
Bram Moolenaar | e3d31b0 | 2018-12-24 23:07:04 +0100 | [diff] [blame] | 255 | call assert_equal([expect3], prop_list(3)) |
| 256 | call prop_clear(1, 3) |
| 257 | |
| 258 | " include all three lines |
| 259 | call prop_add(1, 1, {'end_lnum': 3, 'end_col': 999, 'type': 'comment'}) |
| 260 | let expect1.col = 1 |
| 261 | let expect1.length = 8 |
| 262 | call assert_equal([expect1], prop_list(1)) |
| 263 | call assert_equal([expect2], prop_list(2)) |
| 264 | let expect3.length = 9 |
| 265 | call assert_equal([expect3], prop_list(3)) |
| 266 | call prop_clear(1, 3) |
| 267 | |
| 268 | bwipe! |
Bram Moolenaar | c1a9bc1 | 2018-12-28 21:59:29 +0100 | [diff] [blame] | 269 | |
Bram Moolenaar | b9c67a5 | 2019-01-01 19:49:20 +0100 | [diff] [blame] | 270 | " Test deleting the first line of a multi-line prop. |
Bram Moolenaar | c1a9bc1 | 2018-12-28 21:59:29 +0100 | [diff] [blame] | 271 | call Setup_three_line_prop() |
Bram Moolenaar | b9c67a5 | 2019-01-01 19:49:20 +0100 | [diff] [blame] | 272 | let expect_short = {'col': 2, 'length': 1, 'type': 'comment', 'start': 1, 'end': 1, 'id': 0} |
| 273 | call assert_equal([expect_short], prop_list(1)) |
Bram Moolenaar | c1a9bc1 | 2018-12-28 21:59:29 +0100 | [diff] [blame] | 274 | let expect2 = {'col': 4, 'length': 4, 'type': 'comment', 'start': 1, 'end': 0, 'id': 0} |
| 275 | call assert_equal([expect2], prop_list(2)) |
| 276 | 2del |
Bram Moolenaar | c1a9bc1 | 2018-12-28 21:59:29 +0100 | [diff] [blame] | 277 | call assert_equal([expect_short], prop_list(1)) |
| 278 | let expect2 = {'col': 1, 'length': 6, 'type': 'comment', 'start': 1, 'end': 0, 'id': 0} |
| 279 | call assert_equal([expect2], prop_list(2)) |
| 280 | bwipe! |
| 281 | |
Bram Moolenaar | b9c67a5 | 2019-01-01 19:49:20 +0100 | [diff] [blame] | 282 | " Test deleting the last line of a multi-line prop. |
Bram Moolenaar | c1a9bc1 | 2018-12-28 21:59:29 +0100 | [diff] [blame] | 283 | call Setup_three_line_prop() |
| 284 | let expect3 = {'col': 1, 'length': 6, 'type': 'comment', 'start': 0, 'end': 0, 'id': 0} |
| 285 | call assert_equal([expect3], prop_list(3)) |
Bram Moolenaar | b9c67a5 | 2019-01-01 19:49:20 +0100 | [diff] [blame] | 286 | let expect4 = {'col': 1, 'length': 4, 'type': 'comment', 'start': 0, 'end': 1, 'id': 0} |
Bram Moolenaar | c1a9bc1 | 2018-12-28 21:59:29 +0100 | [diff] [blame] | 287 | call assert_equal([expect4], prop_list(4)) |
| 288 | 4del |
Bram Moolenaar | b9c67a5 | 2019-01-01 19:49:20 +0100 | [diff] [blame] | 289 | let expect3.end = 1 |
Bram Moolenaar | c1a9bc1 | 2018-12-28 21:59:29 +0100 | [diff] [blame] | 290 | call assert_equal([expect3], prop_list(3)) |
| 291 | call assert_equal([expect_short], prop_list(4)) |
| 292 | bwipe! |
| 293 | |
Bram Moolenaar | b9c67a5 | 2019-01-01 19:49:20 +0100 | [diff] [blame] | 294 | " Test appending a line below the multi-line text prop start. |
Bram Moolenaar | b56ac04 | 2018-12-28 23:22:40 +0100 | [diff] [blame] | 295 | call Setup_three_line_prop() |
| 296 | let expect2 = {'col': 4, 'length': 4, 'type': 'comment', 'start': 1, 'end': 0, 'id': 0} |
| 297 | call assert_equal([expect2], prop_list(2)) |
| 298 | call append(2, "new line") |
| 299 | call assert_equal([expect2], prop_list(2)) |
| 300 | let expect3 = {'col': 1, 'length': 9, 'type': 'comment', 'start': 0, 'end': 0, 'id': 0} |
| 301 | call assert_equal([expect3], prop_list(3)) |
| 302 | bwipe! |
| 303 | |
Bram Moolenaar | e3d31b0 | 2018-12-24 23:07:04 +0100 | [diff] [blame] | 304 | call prop_type_delete('comment') |
| 305 | endfunc |
| 306 | |
Bram Moolenaar | b413d2e | 2018-12-25 23:15:46 +0100 | [diff] [blame] | 307 | func Test_prop_byteoff() |
| 308 | call prop_type_add('comment', {'highlight': 'Directory'}) |
| 309 | new |
Bram Moolenaar | 00b1e04 | 2018-12-26 23:42:10 +0100 | [diff] [blame] | 310 | call setline(1, ['line1', 'second line', '']) |
Bram Moolenaar | 8cf734e | 2018-12-26 01:09:00 +0100 | [diff] [blame] | 311 | set ff=unix |
Bram Moolenaar | 00b1e04 | 2018-12-26 23:42:10 +0100 | [diff] [blame] | 312 | call assert_equal(19, line2byte(3)) |
Bram Moolenaar | b413d2e | 2018-12-25 23:15:46 +0100 | [diff] [blame] | 313 | call prop_add(1, 1, {'end_col': 3, 'type': 'comment'}) |
Bram Moolenaar | 00b1e04 | 2018-12-26 23:42:10 +0100 | [diff] [blame] | 314 | call assert_equal(19, line2byte(3)) |
Bram Moolenaar | b413d2e | 2018-12-25 23:15:46 +0100 | [diff] [blame] | 315 | |
| 316 | bwipe! |
| 317 | call prop_type_delete('comment') |
| 318 | endfunc |
| 319 | |
Bram Moolenaar | c6d86dc | 2018-12-31 13:57:36 +0100 | [diff] [blame] | 320 | " screenshot test with textprop highlighting |
| 321 | funct Test_textprop_screenshots() |
Bram Moolenaar | b9c67a5 | 2019-01-01 19:49:20 +0100 | [diff] [blame] | 322 | if !CanRunVimInTerminal() || &encoding != 'utf-8' |
Bram Moolenaar | c6d86dc | 2018-12-31 13:57:36 +0100 | [diff] [blame] | 323 | return |
| 324 | endif |
| 325 | call writefile([ |
Bram Moolenaar | 44746aa | 2019-01-02 00:02:11 +0100 | [diff] [blame] | 326 | \ "call setline(1, ['One two', 'Numbér 123 änd thœn 4¾7.', '--aa--bb--cc--dd--'])", |
Bram Moolenaar | c6d86dc | 2018-12-31 13:57:36 +0100 | [diff] [blame] | 327 | \ "hi NumberProp ctermfg=blue", |
| 328 | \ "hi LongProp ctermbg=yellow", |
| 329 | \ "call prop_type_add('number', {'highlight': 'NumberProp'})", |
| 330 | \ "call prop_type_add('long', {'highlight': 'LongProp'})", |
Bram Moolenaar | 44746aa | 2019-01-02 00:02:11 +0100 | [diff] [blame] | 331 | \ "call prop_type_add('start', {'highlight': 'NumberProp', 'start_incl': 1})", |
| 332 | \ "call prop_type_add('end', {'highlight': 'NumberProp', 'end_incl': 1})", |
| 333 | \ "call prop_type_add('both', {'highlight': 'NumberProp', 'start_incl': 1, 'end_incl': 1})", |
Bram Moolenaar | c6d86dc | 2018-12-31 13:57:36 +0100 | [diff] [blame] | 334 | \ "call prop_add(1, 4, {'end_lnum': 3, 'end_col': 3, 'type': 'long'})", |
Bram Moolenaar | b9c67a5 | 2019-01-01 19:49:20 +0100 | [diff] [blame] | 335 | \ "call prop_add(2, 9, {'length': 3, 'type': 'number'})", |
| 336 | \ "call prop_add(2, 24, {'length': 4, 'type': 'number'})", |
Bram Moolenaar | 44746aa | 2019-01-02 00:02:11 +0100 | [diff] [blame] | 337 | \ "call prop_add(3, 3, {'length': 2, 'type': 'number'})", |
| 338 | \ "call prop_add(3, 7, {'length': 2, 'type': 'start'})", |
| 339 | \ "call prop_add(3, 11, {'length': 2, 'type': 'end'})", |
| 340 | \ "call prop_add(3, 15, {'length': 2, 'type': 'both'})", |
Bram Moolenaar | c6d86dc | 2018-12-31 13:57:36 +0100 | [diff] [blame] | 341 | \ "set number", |
Bram Moolenaar | b9c67a5 | 2019-01-01 19:49:20 +0100 | [diff] [blame] | 342 | \ "hi clear SpellBad", |
Bram Moolenaar | c6d86dc | 2018-12-31 13:57:36 +0100 | [diff] [blame] | 343 | \ "set spell", |
Bram Moolenaar | 44746aa | 2019-01-02 00:02:11 +0100 | [diff] [blame] | 344 | \ "normal 3G0llix\<Esc>lllix\<Esc>lllix\<Esc>lllix\<Esc>lllix\<Esc>lllix\<Esc>lllix\<Esc>lllix\<Esc>", |
Bram Moolenaar | 33c8ca9 | 2019-01-02 18:00:27 +0100 | [diff] [blame^] | 345 | \ "normal 3G0lli\<BS>\<Esc>", |
Bram Moolenaar | c6d86dc | 2018-12-31 13:57:36 +0100 | [diff] [blame] | 346 | \], 'XtestProp') |
Bram Moolenaar | b9c67a5 | 2019-01-01 19:49:20 +0100 | [diff] [blame] | 347 | let buf = RunVimInTerminal('-S XtestProp', {'rows': 6}) |
Bram Moolenaar | c6d86dc | 2018-12-31 13:57:36 +0100 | [diff] [blame] | 348 | call VerifyScreenDump(buf, 'Test_textprop_01', {}) |
Bram Moolenaar | e3d31b0 | 2018-12-24 23:07:04 +0100 | [diff] [blame] | 349 | |
Bram Moolenaar | c6d86dc | 2018-12-31 13:57:36 +0100 | [diff] [blame] | 350 | " clean up |
| 351 | call StopVimInTerminal(buf) |
Bram Moolenaar | 2f21fa8 | 2018-12-31 20:05:56 +0100 | [diff] [blame] | 352 | call delete('XtestProp') |
Bram Moolenaar | c6d86dc | 2018-12-31 13:57:36 +0100 | [diff] [blame] | 353 | endfunc |