view src/testdir/test_tcl.vim @ 12988:da725bc3fd2c v8.0.1370

patch 8.0.1370: channel test for callback is flaky commit https://github.com/vim/vim/commit/1eca6f13d62d2201f3bf0e83400c2e3de7df3951 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 5 14:04:27 2017 +0100 patch 8.0.1370: channel test for callback is flaky Problem: Channel test for callback is flaky. Solution: Add the test to thelist of flaky tests.
author Christian Brabandt <cb@256bit.org>
date Tue, 05 Dec 2017 14:15:04 +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