" Tests for defining text property types and adding text properties to the
" buffer.
source check.vim
CheckFeature textprop
source screendump.vim
func Test_proptype_global()
call prop_type_add('comment', {'highlight': 'Directory', 'priority': 123, 'start_incl': 1, 'end_incl': 1})
let proptypes = prop_type_list()
call assert_equal(1, len(proptypes))
call assert_equal('comment', proptypes[0])
let proptype = prop_type_get('comment')
call assert_equal('Directory', proptype['highlight'])
call assert_equal(123, proptype['priority'])
call assert_equal(1, proptype['start_incl'])
call assert_equal(1, proptype['end_incl'])
call prop_type_delete('comment')
call assert_equal(0, len(prop_type_list()))
call prop_type_add('one', {})
call assert_equal(1, len(prop_type_list()))
let proptype = 'one'->prop_type_get()
call assert_false(has_key(proptype, 'highlight'))
call assert_equal(0, proptype['priority'])
call assert_equal(0, proptype['start_incl'])
call assert_equal(0, proptype['end_incl'])
call prop_type_add('two', {})
call assert_equal(2, len(prop_type_list()))
call prop_type_delete('one')
call assert_equal(1,