Docx reader: Add test

Test auto ident header anchors with pandoc-generated pandoc.
This commit is contained in:
Jesse Rosenthal 2014-07-15 10:25:32 +01:00
parent 5883899625
commit 643435f1de
4 changed files with 8 additions and 0 deletions

View file

@ -188,6 +188,8 @@ Extra-Source-Files:
tests/fb2.math.fb2,
tests/fb2.test-small.png,
tests/fb2.test.jpg,
tests/docx.already_auto_ident.native,
tests/docx.already_auto_ident.docx,
tests/docx.block_quotes.docx,
tests/docx.block_quotes_parse_indent.native,
tests/docx.headers.docx,

View file

@ -96,6 +96,10 @@ tests = [ testGroup "inlines"
"headers"
"docx.headers.docx"
"docx.headers.native"
, testCompare
"headers already having auto identifiers"
"docx.already_auto_ident.docx"
"docx.already_auto_ident.native"
, testCompare
"lists"
"docx.lists.docx"

Binary file not shown.

View file

@ -0,0 +1,2 @@
[Header 1 ("anchor-header",[],[]) [Str "Anchor",Space,Str "Header"]
,Para [Str "A",Space,Link [Str "link"] ("#anchor-header","")]]