Lines Matching refs:option

90         \           'wrong # args: should be "::vim::buffer option"')
95 \ 'bad option "x": must be exists or list')
104 \ 'bad option "abcd":')
110 " Test ::vim::option
114 " Test getting option 'cc'
115 call assert_equal('3,5', TclEval('::vim::option cc'))
118 " Test setting option 'cc' (it returns the old option value)
119 call assert_equal('3,5', TclEval('::vim::option cc +4'))
121 call assert_equal('+4', TclEval('::vim::option cc'))
123 " Test boolean option with 'toggle', 'on' and 'off' keywords.
124 call assert_equal('0', TclEval('::vim::option nu toggle'))
126 call assert_equal('1', TclEval('::vim::option nu toggle'))
128 call assert_equal('0', TclEval('::vim::option nu on'))
130 call assert_equal('1', TclEval('::vim::option nu off'))
133 call assert_fails('tcl ::vim::option nu x', 'expected integer but got "x"')
134 call assert_fails('tcl ::vim::option xxx', 'unknown vimOption')
135 call assert_fails('tcl ::vim::option',
136 \ 'wrong # args: should be "::vim::option vimOption ?value?"')
161 " With the -quiet option, the error should silently be ignored.
170 " With the -quiet option, the error should silently be ignored.
187 call assert_fails('tcl ::vim::window x', 'unknown option')
189 \ 'wrong # args: should be "::vim::window option"')
191 \ 'bad option "abcd":')
347 " Test $win option
355 " Test setting window option
356 tcl $w1 option syntax java
357 tcl $w2 option syntax rust
363 " Test getting window option
364 call assert_equal('java', TclEval('$w1 option syntax'))
365 call assert_equal('rust', TclEval('$w2 option syntax'))
596 " Test $buf option (test and set option in context of a buffer)
603 tcl $b1 option foldcolumn 2
604 tcl $b2 option foldcolumn 3
610 call assert_equal('2', TclEval('$b1 option foldcolumn'))
611 call assert_equal('3', TclEval('$b2 option foldcolumn'))
613 call assert_fails('tcl $::vim::current(buffer) option', 'wrong # args:')