vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit e006da5aa039d389213f9bb5c38944ad7f2d63fc
parent 36e545572342de10f414a04878c52831ad98e427
Author: Rafael Castillo <rafael@trfs.me>
Date:   Wed, 17 Jun 2020 20:49:12 -0700

Add test for arrow blockquotes

Diffstat:
Atest/html_blockquote.vader | 71+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+), 0 deletions(-)

diff --git a/test/html_blockquote.vader b/test/html_blockquote.vader @@ -0,0 +1,71 @@ +Include: vader_includes/vader_setup.vader + +Execute (Copy Wiki's Resources): + Log "Start: Copy Resources" + call CopyResources() + +Given (Void): + +Execute (Edit TestHtml Wiki): + edit $HOME/testwiki/TestHtml.wiki + AssertEqual $HOME . '/testwiki/TestHtml.wiki', expand('%') + AssertEqual 'default', vimwiki#vars#get_wikilocal('syntax') + AssertEqual 0, vimwiki#vars#get_bufferlocal('wiki_nr') + +Do (Markdown with arrow blockquotes): + :edit $HOME/testwiki/TestHtml.wiki\<CR> + ggdGi first paragraph\<CR>\<CR> + > block\<CR> + > quote\<CR>\<CR> + last paragraph\<CR>\<Esc> + :write\<CR> + + +Execute (Save and Convert to html): + edit $HOME/testwiki/TestHtml.wiki + Vimwiki2HTML + + +Given (Void): + + +Do (Get Html body): + :read $HOME/html/default/TestHtml.html\<CR> +# Goto body + gg/<body>\<CR> +# Copy in b + "bdat +# Delete All + ggdG +# Paste body + "bP +# Remove last line + Gdd +# Save (Not necessary) + :write + + + +Expect (Plain Html): +# the whole default html file should be here as a base + the modifications +# from "Given" + <body> + + <p> + first paragraph + </p> + + <blockquote> + <p> + block + quote + </p> + </blockquote> + + <p> + last paragraph + </p> + + </body> + +Include: vader_includes/vader_teardown.vader