Docx reader: tests for removing unused anchors.
This commit is contained in:
parent
e90c714c73
commit
475b0dcb66
3 changed files with 7 additions and 0 deletions
|
@ -175,6 +175,10 @@ tests = [ testGroup "inlines"
|
|||
"inlines inside of Structured Document Tags"
|
||||
"docx/sdt_elements.docx"
|
||||
"docx/sdt_elements.native"
|
||||
, testCompare
|
||||
"remove anchor spans with nothing pointing to them"
|
||||
"docx/unused_anchors.docx"
|
||||
"docx/unused_anchors.native"
|
||||
]
|
||||
, testGroup "blocks"
|
||||
[ testCompare
|
||||
|
|
BIN
test/docx/unused_anchors.docx
Normal file
BIN
test/docx/unused_anchors.docx
Normal file
Binary file not shown.
3
test/docx/unused_anchors.native
Normal file
3
test/docx/unused_anchors.native
Normal file
|
@ -0,0 +1,3 @@
|
|||
[Header 1 ("my-section",[],[]) [Str "My",Space,Str "Section"]
|
||||
,Para [Link ("",[],[]) [Str "Here",Space,Str "is",Space,Str "a",Space,Str "link."] ("#Bar","")]
|
||||
,Para [Span ("Bar",["anchor"],[]) [],Str "Here",Space,Str "is",Space,Str "the",Space,Str "target."]]
|
Loading…
Add table
Reference in a new issue