summaryrefslogtreecommitdiffstats
path: root/src/testdir/README.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-10 22:23:06 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-10 22:23:06 +0100
commit2ab375e54ef4eac438d1aef8b99d9e71f2fa0c63 (patch)
treed62682f35f89d4821d4b1a5a8f71c71fb7b9745b /src/testdir/README.txt
parentf6157284de71d8881f3b89fbd79d1ecbf842929f (diff)
patch 7.4.1300v7.4.1300
Problem: Cannot test CursorMovedI because there is typeahead. Solution: Add disable_char_avail_for_testing().
Diffstat (limited to 'src/testdir/README.txt')
-rw-r--r--src/testdir/README.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/README.txt b/src/testdir/README.txt
index 7cbc77133e..052ccf5a2a 100644
--- a/src/testdir/README.txt
+++ b/src/testdir/README.txt
@@ -25,6 +25,9 @@ What you can use (see test_assert.vim for an example):
to check memory allocation failures are handled gracefully. You need to
change the source code to add an ID to the allocation. Update LAST_ID_USED
above alloc_id() to the highest ID used.
+- Use disable_char_avail_for_testing(1) if char_avail() must return FALSE for
+ a while. E.g. to trigger the CursorMovedI autocommand event.
+ See test_cursor_func.vim for an example
TO ADD AN OLD STYLE TEST: