From 7591116acffc45b5880c49244646651badac1629 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 21 Jul 2020 19:44:47 +0200 Subject: patch 8.2.1260: there is no good test for CursorHold Problem: There is no good test for CursorHold. Solution: Add a test. Remove duplicated test. (Yegappan Lakshmanan, closes #6503 --- src/testdir/test_buffer.vim | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/testdir/test_buffer.vim') diff --git a/src/testdir/test_buffer.vim b/src/testdir/test_buffer.vim index c8f6c5a696..e54b6338cb 100644 --- a/src/testdir/test_buffer.vim +++ b/src/testdir/test_buffer.vim @@ -67,15 +67,6 @@ func Test_bunload_with_offset() call assert_fails('1,4bunload', 'E16:') call assert_fails(',100bunload', 'E16:') - " Use a try-catch for this test. When assert_fails() is used for this - " test, the command fails with E515: instead of E90: - let caught_E90 = 0 - try - $bunload - catch /E90:/ - let caught_E90 = 1 - endtry - call assert_equal(1, caught_E90) call assert_fails('$bunload', 'E90:') endfunc -- cgit v1.2.3