view src/testdir/test_tcl.vim @ 11500:f0d050a452c5 v8.0.0633

patch 8.0.0633: the client-server test is still a bit flaky commit https://github.com/vim/vim/commit/60964f68740b8abcbb2d3f0f3aeade21d1bacb22 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 10 17:06:16 2017 +0200 patch 8.0.0633: the client-server test is still a bit flaky Problem: The client-server test is still a bit flaky. Solution: Wait a bit for the GUI to start. Check that the version number can be obtained.
author Christian Brabandt <cb@256bit.org>
date Sat, 10 Jun 2017 17:15:03 +0200
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