Test: VimwikiTableMoveColumnLeft and some friends
Test: VimwikiTableMoveColumnLeft (Note:cannot test <M-Left> map : not triggered) Test: issue #949 <Enter> create link bug with Chinese characters Test: VimwikiGoto with ,wn Test: Table left align Prettify: modeline of contributing
This commit is contained in:
parent
446776e00b
commit
edf562fab0
@ -74,4 +74,4 @@ linter checks. See the [test README](test/README.md) for more info.
|
||||
immediately forget this plan.
|
||||
11. Tell the world.
|
||||
|
||||
<!-- vim:tw=99 -->
|
||||
<!-- vim: set tw=99 : -->
|
||||
|
@ -32,6 +32,10 @@ Do (VimwikiGoto <CR> buzz_bo + Completion(input()) && Assert):
|
||||
buzz_bo\<C-l>\<CR>
|
||||
:AssertEqual $HOME . '/testmarkdown/buzz_bozz.md', expand('%')\<CR>
|
||||
|
||||
Do (,wn buzz_bo + Completion(input()) && Assert):
|
||||
,wn
|
||||
buzz_bo\<C-l>\<CR>
|
||||
:AssertEqual $HOME . '/testmarkdown/buzz_bozz.md', expand('%')\<CR>
|
||||
|
||||
Execute (:VimwikiGoto + Completion (API)):
|
||||
VimwikiIndex 2
|
||||
|
@ -8,7 +8,34 @@
|
||||
Include: vader_includes/vader_setup.vader
|
||||
|
||||
|
||||
# #735 Fix off-by-one error in get_next_line and get_prev_line
|
||||
Execute (Log):
|
||||
Log '#949 <Enter> create link bug with Chinese characters'
|
||||
|
||||
Given vimwiki (Madarin with vimwiki Yeeepy):
|
||||
你
|
||||
你好
|
||||
你们好
|
||||
你们好啊
|
||||
你们好啊啊
|
||||
你们好啊aaaaa
|
||||
aaaaa你们好啊
|
||||
|
||||
Do (Enter in all):
|
||||
\<Cr>j \<Cr>j \<Cr>j \<Cr>j \<Cr>j \<Cr>j \<Cr>j
|
||||
|
||||
Expect (all WORDS are links):
|
||||
[你](你)
|
||||
[你好](你好)
|
||||
[你们好](你们好)
|
||||
[你们好啊](你们好啊)
|
||||
[你们好啊啊](你们好啊啊)
|
||||
[你们好啊aaaaa](你们好啊aaaaa)
|
||||
[aaaaa你们好啊](aaaaa你们好啊)
|
||||
|
||||
|
||||
Execute (Log):
|
||||
Log '#735 Fix off-by-one error in get_next_line and get_prev_line'
|
||||
|
||||
Given vimwiki (P#735 -> I#407):
|
||||
1. item1
|
||||
2. item2
|
||||
@ -30,14 +57,16 @@ Expect (Renumber all):
|
||||
4. item3
|
||||
|
||||
|
||||
# TODO move to option
|
||||
# #899 conceallevel is setted globally when editing a wiki file
|
||||
Execute (Log):
|
||||
Log '#899 conceallevel is setted globally when editing a wiki file (PR #900)'
|
||||
|
||||
Given vimwiki (Void):
|
||||
|
||||
Execute (conceal):
|
||||
# First conceal 2
|
||||
set conceallevel=1
|
||||
let g:vimwiki_global_vars['conceallevel']=2
|
||||
|
||||
Log ' ConcealLevel is set to vimwiki for a .md'
|
||||
call SetSyntax('markdown')
|
||||
file main.md
|
||||
edit
|
||||
@ -46,18 +75,27 @@ Execute (conceal):
|
||||
if exists('+conceallevel')
|
||||
AssertEqual &conceallevel, 2
|
||||
endif
|
||||
# Second New conceal 0
|
||||
# let g:vimwiki_global_vars['conceallevel']=0
|
||||
# edit new.md
|
||||
# AssertEqual &ft, 'vimwiki'
|
||||
# AssertEqual @%, 'new.md'
|
||||
# if exists('+conceallevel')
|
||||
# AssertEqual &conceallevel, 0
|
||||
# endif
|
||||
# bd!
|
||||
|
||||
Log ' ConcealLevel is set to vim for a no_ext'
|
||||
edit no_ext
|
||||
AssertEqual &ft, ''
|
||||
if exists('+conceallevel')
|
||||
AssertEqual &conceallevel, 1
|
||||
endif
|
||||
|
||||
Log ' Again ConcealLevel is set to vimwiki for a .md (just for fun)'
|
||||
let g:vimwiki_global_vars['conceallevel']=0
|
||||
edit new.md
|
||||
AssertEqual &ft, 'vimwiki'
|
||||
AssertEqual @%, 'new.md'
|
||||
if exists('+conceallevel')
|
||||
AssertEqual &conceallevel, 0
|
||||
endif
|
||||
|
||||
|
||||
# PR #528: Add option |g:vimwiki_create_link| to prevent link creation
|
||||
Execute (Log):
|
||||
Log 'PR #528: Add option |g:vimwiki_create_link| to prevent link creation'
|
||||
|
||||
Given vimwiki (Link):
|
||||
Link
|
||||
|
||||
|
@ -143,6 +143,33 @@ Expect (Table 8 x 3):
|
||||
| | | | | | | | |
|
||||
|
||||
|
||||
Given vimwiki (Table 5 x (1+3)):
|
||||
| h1 | h2 | h3 | h4 | h5 |
|
||||
|-----|-----|-----|-----|-----|
|
||||
| l11 | l12 | l13 | l14 | l15 |
|
||||
| l21 | l22 | l23 | l24 | l25 |
|
||||
| l31 | l32 | l33 | l34 | l35 |
|
||||
|
||||
Execute (VimwikiTableMoveColumnRight):
|
||||
VimwikiTableMoveColumnRight
|
||||
|
||||
Expect (Col: 1 -> 2):
|
||||
| h2 | h1 | h3 | h4 | h5 |
|
||||
|-----|-----|-----|-----|-----|
|
||||
| l12 | l11 | l13 | l14 | l15 |
|
||||
| l22 | l21 | l23 | l24 | l25 |
|
||||
| l32 | l31 | l33 | l34 | l35 |
|
||||
|
||||
Execute (VimwikiTableMoveColumnLeft):
|
||||
call cursor(5, 16)
|
||||
VimwikiTableMoveColumnLeft
|
||||
|
||||
Expect (Col: 3 -> 2):
|
||||
| h1 | h3 | h2 | h4 | h5 |
|
||||
|-----|-----|-----|-----|-----|
|
||||
| l11 | l13 | l12 | l14 | l15 |
|
||||
| l21 | l23 | l22 | l24 | l25 |
|
||||
| l31 | l33 | l32 | l34 | l35 |
|
||||
|
||||
# Justify Cell Content {{{1
|
||||
###########################
|
||||
@ -168,7 +195,22 @@ Expect (Text justified):
|
||||
| 2017-02-13 | Tea | $2.10 |
|
||||
| 2017-03-14 | Cake | $143.12 |
|
||||
|
||||
Given vimwiki (To be left aligned):
|
||||
| Date | Item |
|
||||
|:------------|------:|
|
||||
|yest|Coffee |
|
||||
| 2017-02-13| Tea|
|
||||
|2017-03-14 |Cake |
|
||||
|
||||
Do (A to trigger insertLeave):
|
||||
A
|
||||
|
||||
Expect (Left justified and :--- -> ----):
|
||||
| Date | Item |
|
||||
|------------|-------:|
|
||||
| yest | Coffee |
|
||||
| 2017-02-13 | Tea |
|
||||
| 2017-03-14 | Cake |
|
||||
|
||||
|
||||
Include: vader_includes/vader_teardown.vader
|
||||
|
Loading…
Reference in New Issue
Block a user