forked from aniani/vim
patch 9.0.0134: no test for text property with column zero
Problem: No test for text property with column zero. Solution: Add a test. Add message to assert for no open popups.
This commit is contained in:
@@ -245,7 +245,7 @@ func RunTheTest(test)
|
|||||||
|
|
||||||
" Check for and close any stray popup windows.
|
" Check for and close any stray popup windows.
|
||||||
if has('popupwin')
|
if has('popupwin')
|
||||||
call assert_equal([], popup_list())
|
call assert_equal([], popup_list(), 'Popup is still present')
|
||||||
call popup_clear(1)
|
call popup_clear(1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@@ -1611,6 +1611,23 @@ func Test_prop_one_line_window()
|
|||||||
bwipe!
|
bwipe!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
def Test_prop_column_zero_error()
|
||||||
|
prop_type_add('proptype', {highlight: 'Search'})
|
||||||
|
var caught = false
|
||||||
|
try
|
||||||
|
popup_create([{
|
||||||
|
text: 'a',
|
||||||
|
props: [{col: 0, length: 1, type: 'type'}],
|
||||||
|
}], {})
|
||||||
|
catch /E964:/
|
||||||
|
caught = true
|
||||||
|
endtry
|
||||||
|
assert_true(caught)
|
||||||
|
|
||||||
|
popup_clear()
|
||||||
|
prop_type_delete('proptype')
|
||||||
|
enddef
|
||||||
|
|
||||||
" This was calling ml_append_int() and copy a text property from a previous
|
" This was calling ml_append_int() and copy a text property from a previous
|
||||||
" line at the wrong moment. Exact text length matters.
|
" line at the wrong moment. Exact text length matters.
|
||||||
def Test_prop_splits_data_block()
|
def Test_prop_splits_data_block()
|
||||||
|
@@ -735,6 +735,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
134,
|
||||||
/**/
|
/**/
|
||||||
133,
|
133,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user