comparison src/testdir/test_mksession.vim @ 14646:aa48ee3d3d12 v8.1.0336

patch 8.1.0336: mkview test still fails on CI commit https://github.com/vim/vim/commit/dd5d18eadffadc723ff7d3e208a2973d267a6dde Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 30 14:16:06 2018 +0200 patch 8.1.0336: mkview test still fails on CI Problem: mkview test still fails on CI. Solution: Ignore curswant, don't see another solution.
author Christian Brabandt <cb@256bit.org>
date Thu, 30 Aug 2018 14:30:06 +0200
parents 3d94bbf54530
children 1c6a708a5fee
comparison
equal deleted inserted replaced
14645:b20684e25d7a 14646:aa48ee3d3d12
319 func Test_mkview_file() 319 func Test_mkview_file()
320 " Create a view with line number and a fold. 320 " Create a view with line number and a fold.
321 help :mkview 321 help :mkview
322 set number 322 set number
323 norm! V}zf0 323 norm! V}zf0
324 let pos = getcurpos() 324 let pos = getpos('.')
325 let linefoldclosed1 = foldclosed('.') 325 let linefoldclosed1 = foldclosed('.')
326 mkview! Xview 326 mkview! Xview
327 set nonumber 327 set nonumber
328 norm! zrj 328 norm! zrj
329 " We can close the help window, as mkview with a file name should 329 " We can close the help window, as mkview with a file name should
331 helpclose 331 helpclose
332 332
333 source Xview 333 source Xview
334 call assert_equal(1, &number) 334 call assert_equal(1, &number)
335 call assert_match('\*:mkview\*$', getline('.')) 335 call assert_match('\*:mkview\*$', getline('.'))
336 call assert_equal(pos, getcurpos()) 336 call assert_equal(pos, getpos('.'))
337 call assert_equal(linefoldclosed1, foldclosed('.')) 337 call assert_equal(linefoldclosed1, foldclosed('.'))
338 338
339 " Creating a view again with the same file name should fail (file 339 " Creating a view again with the same file name should fail (file
340 " already exists). But with a !, the previous view should be 340 " already exists). But with a !, the previous view should be
341 " overwritten without error. 341 " overwritten without error.
354 set viewdir=Xviewdir 354 set viewdir=Xviewdir
355 355
356 help :mkview 356 help :mkview
357 set number 357 set number
358 norm! V}zf 358 norm! V}zf
359 let pos = getcurpos() 359 let pos = getpos('.')
360 let linefoldclosed1 = foldclosed('.') 360 let linefoldclosed1 = foldclosed('.')
361 mkview 1 361 mkview 1
362 set nonumber 362 set nonumber
363 norm! zrj 363 norm! zrj
364 364
371 \ substitute( 371 \ substitute(
372 \ expand('%:p'), '/', '=+', 'g'), ':', '=-', 'g') . '=1.vim', 372 \ expand('%:p'), '/', '=+', 'g'), ':', '=-', 'g') . '=1.vim',
373 \ glob('Xviewdir/*')) 373 \ glob('Xviewdir/*'))
374 call assert_equal(1, &number) 374 call assert_equal(1, &number)
375 call assert_match('\*:mkview\*$', getline('.')) 375 call assert_match('\*:mkview\*$', getline('.'))
376 call assert_equal(pos, getcurpos()) 376 call assert_equal(pos, getpos('.'))
377 call assert_equal(linefoldclosed1, foldclosed('.')) 377 call assert_equal(linefoldclosed1, foldclosed('.'))
378 378
379 call delete('Xviewdir', 'rf') 379 call delete('Xviewdir', 'rf')
380 set viewdir& 380 set viewdir&
381 helpclose 381 helpclose