view src/testdir/test_tcl.vim @ 10789:214417c527b5 v8.0.0284

patch 8.0.0284: collapse buffers test failed once commit https://github.com/vim/vim/commit/b245559fa9b03bfb0d0f77023120e60d870f0b56 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 1 18:00:13 2017 +0100 patch 8.0.0284: collapse buffers test failed once Problem: The Test_collapse_buffers() test failed once, looks like it is flaky. Solution: Add it to the list of flaky tests.
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Feb 2017 18:15:03 +0100
parents ae0bbbbe2a38
children c80acf74e7df
line wrap: on
line source

" Tests for the Tcl interface.

if !has('tcl')
  finish
end

function Test_tcldo()
  " Check deleting lines does not trigger ml_get error.
  new
  call setline(1, ['one', 'two', 'three'])
  tcldo ::vim::command %d_
  bwipe!

  " Check switching to another buffer does not trigger ml_get error.
  new
  let wincount = winnr('$')
  call setline(1, ['one', 'two', 'three'])
  tcldo ::vim::command new
  call assert_equal(wincount + 1, winnr('$'))
  bwipe!
  bwipe!
endfunc