view src/testdir/test_autocmd_option.ok @ 10557:018b7ecc58db v8.0.0168

patch 8.0.0168: not all float functionality is tested commit https://github.com/vim/vim/commit/872004132f25cabe59352912889e042d6c7e6b4e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 10 16:31:20 2017 +0100 patch 8.0.0168: not all float functionality is tested Problem: Still some float functionality is not covered by tests. Solution: Add more tests. (Dominique Pelle, closes https://github.com/vim/vim/issues/1364)
author Christian Brabandt <cb@256bit.org>
date Tue, 10 Jan 2017 16:45:04 +0100
parents 0b4e65cf84fb
children
line wrap: on
line source

dummy text

1: Setting number option
Expected: Name: <number>, Oldval: <0>, NewVal: <1>, Scope: <global>
Autocmd Option: <number>, OldVal: <0>, NewVal: <1>, Scope: <global>

2: Setting local number option
Expected: Name: <number>, Oldval: <1>, NewVal: <0>, Scope: <local>
Autocmd Option: <number>, OldVal: <1>, NewVal: <0>, Scope: <local>

3: Setting global number option
Expected: Name: <number>, Oldval: <1>, NewVal: <0>, Scope: <global>
Autocmd Option: <number>, OldVal: <1>, NewVal: <0>, Scope: <global>

4: Setting local autoindent option
Expected: Name: <autoindent>, Oldval: <0>, NewVal: <1>, Scope: <local>
Autocmd Option: <autoindent>, OldVal: <0>, NewVal: <1>, Scope: <local>

5: Setting global autoindent option
Expected: Name: <autoindent>, Oldval: <0>, NewVal: <1>, Scope: <global>
Autocmd Option: <autoindent>, OldVal: <0>, NewVal: <1>, Scope: <global>

6: Setting global autoindent option
Expected: Name: <autoindent>, Oldval: <1>, NewVal: <0>, Scope: <global>
Autocmd Option: <autoindent>, OldVal: <1>, NewVal: <0>, Scope: <global>

7: Setting several global list and number option
Expected: Name: <list>, Oldval: <0>, NewVal: <1>, Scope: <global>
Autocmd Option: <list>, OldVal: <0>, NewVal: <1>, Scope: <global>

7: Setting several global list and number option
Expected: Name: <number>, Oldval: <0>, NewVal: <1>, Scope: <global>
Autocmd Option: <number>, OldVal: <0>, NewVal: <1>, Scope: <global>

8: Setting global acd
Expected: Name: <autochdir>, Oldval: <0>, NewVal: <1>, Scope: <global>
Autocmd Option: <autochdir>, OldVal: <0>, NewVal: <1>, Scope: <local>

9: Setting global autoread
Expected: Name: <autoread>, Oldval: <0>, NewVal: <1>, Scope: <global>
Autocmd Option: <autoread>, OldVal: <0>, NewVal: <1>, Scope: <global>

10: Setting local autoread
Expected: Name: <autoread>, Oldval: <0>, NewVal: <1>, Scope: <local>
Autocmd Option: <autoread>, OldVal: <1>, NewVal: <1>, Scope: <local>

11: Setting global autoread
Expected: Name: <autoread>, Oldval: <1>, NewVal: <0>, Scope: <global>
Autocmd Option: <autoread>, OldVal: <1>, NewVal: <0>, Scope: <global>

12: Setting option backspace through :let
Expected: Name: <backspace>, Oldval: <>, NewVal: <eol,indent,start>, Scope: <global>
Autocmd Option: <backspace>, OldVal: <>, NewVal: <eol,indent,start>, Scope: <global>

13: Setting option backspace through setbufvar()
Expected: Name: <backup>, Oldval: <>, NewVal: <1>, Scope: <local>
Autocmd Option: <backup>, OldVal: <0>, NewVal: <1>, Scope: <local>

14: Setting number option using setwinvar
Expected: Name: <number>, Oldval: <0>, NewVal: <1>, Scope: <local>
Autocmd Option: <number>, OldVal: <0>, NewVal: <1>, Scope: <local>

15: Setting key option, shouldn't trigger