view src/testdir/test_preview.vim @ 19856:90eec641cc8c v8.2.0484

patch 8.2.0484: Vim9: some error messages not tested Commit: https://github.com/vim/vim/commit/92dba36fc8742fdb51b16d9bb967ef184b4babc1 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 30 21:22:56 2020 +0200 patch 8.2.0484: Vim9: some error messages not tested Problem: Vim9: some error messages not tested. Solution: Add more tests.
author Bram Moolenaar <Bram@vim.org>
date Mon, 30 Mar 2020 21:30:04 +0200
parents 068337e86133
children 2c4d9ca33769
line wrap: on
line source

" Tests for the preview window
source check.vim
CheckFeature quickfix

func Test_Psearch()
  " this used to cause ml_get errors
  help
  let wincount = winnr('$')
  0f
  ps.
  call assert_equal(wincount + 1, winnr('$'))
  pclose
  call assert_equal(wincount, winnr('$'))
  bwipe
endfunc