Mercurial > vim
annotate src/testdir/test_preview.vim @ 17877:642832e45388 v8.1.1935
patch 8.1.1935: test for text property popup window is flaky
Commit: https://github.com/vim/vim/commit/57441d6fa0ba44be8dc16d6469a8659afc2f3b81
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 28 22:38:07 2019 +0200
patch 8.1.1935: test for text property popup window is flaky
Problem: Test for text property popup window is flaky.
Solution: Remove the undo message
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 28 Aug 2019 22:45:03 +0200 |
parents | 5e36b2f825cb |
children | 068337e86133 |
rev | line source |
---|---|
11759
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Tests for the preview window |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 func Test_Psearch() |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 " this used to cause ml_get errors |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 help |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 let wincount = winnr('$') |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 0f |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 ps. |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 call assert_equal(wincount + 1, winnr('$')) |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 pclose |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 call assert_equal(wincount, winnr('$')) |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 bwipe |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 endfunc |