view src/testdir/test_behave.vim @ 24248:883d7ceffd97 v8.2.2665

patch 8.2.2665: test failures Commit: https://github.com/vim/vim/commit/7b45d46cf7db0d2d7a4defc2d81b233a2c672b74 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 27 19:09:02 2021 +0100 patch 8.2.2665: test failures Problem: Test failures. Solution: Check more specific feature. Add missing change.
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Mar 2021 19:15:03 +0100
parents 08940efa6b4e
children
line wrap: on
line source

" Test the :behave command

func Test_behave()
  behave mswin
  call assert_equal('mouse,key', &selectmode)
  call assert_equal('popup', &mousemodel)
  call assert_equal('startsel,stopsel', &keymodel)
  call assert_equal('exclusive', &selection)

  behave xterm
  call assert_equal('', &selectmode)
  call assert_equal('extend', &mousemodel)
  call assert_equal('', &keymodel)
  call assert_equal('inclusive', &selection)

  set selection&
  set mousemodel&
  set keymodel&
  set selection&
endfunc

func Test_behave_completion()
  call feedkeys(":behave \<C-A>\<C-B>\"\<CR>", 'tx')
  call assert_equal('"behave mswin xterm', @:)
endfunc

func Test_behave_error()
  call assert_fails('behave x', 'E475:')
endfunc

" vim: shiftwidth=2 sts=2 expandtab