Docx reader: tests for overlapping targets (anchor spans).
This commit is contained in:
parent
836153de43
commit
3f30455b49
3 changed files with 7 additions and 0 deletions
|
@ -179,6 +179,10 @@ tests = [ testGroup "inlines"
|
|||
"remove anchor spans with nothing pointing to them"
|
||||
"docx/unused_anchors.docx"
|
||||
"docx/unused_anchors.native"
|
||||
, testCompare
|
||||
"collapse overlapping targets (anchor spans)"
|
||||
"docx/overlapping_targets.docx"
|
||||
"docx/overlapping_targets.native"
|
||||
]
|
||||
, testGroup "blocks"
|
||||
[ testCompare
|
||||
|
|
BIN
test/docx/overlapping_targets.docx
Normal file
BIN
test/docx/overlapping_targets.docx
Normal file
Binary file not shown.
3
test/docx/overlapping_targets.native
Normal file
3
test/docx/overlapping_targets.native
Normal file
|
@ -0,0 +1,3 @@
|
|||
[Para [Link ("",[],[]) [Str "One",Space,Str "link",Space,Str "to",Space,Str "one",Space,Str "target."] ("#Fizz","")]
|
||||
,Para [Span ("Fizz",["anchor"],[]) [],Str "This",Space,Str "is",Space,Str "a",Space,Str "target",Space,Str "with",Space,Str "two",Space,Str "names."]
|
||||
,Para [Link ("",[],[]) [Str "Another",Space,Str "link",Space,Str "to",Space,Str "the",Space,Str "same",Space,Str "target."] ("#Fizz","")]]
|
Loading…
Add table
Reference in a new issue