Docx reader: Add tests for basic track changes

This is what seems like the sensible default: read in insertions, and
ignore deletions. In the future, it would be good if options were
available for either taking in deletions or keeping both in some
scriptable format.
This commit is contained in:
Jesse Rosenthal 2014-06-25 11:09:28 -04:00
parent 9614ddfedc
commit a2b6ab847c
5 changed files with 12 additions and 0 deletions

View file

@ -122,5 +122,15 @@ tests = [ testGroup "inlines"
"docx.codeblock.native"
]
, testGroup "track changes"
[ testCompare
"insert insertion (insertions only)"
"docx.track_changes_insertion.docx"
"docx.track_changes_insertion_only_ins.native"
, testCompare
"skip deletion (insertions only)"
"docx.track_changes_deletion.docx"
"docx.track_changes_deletion_only_ins.native"
]
]

Binary file not shown.

View file

@ -0,0 +1 @@
[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "text",Space,Str "with",Space,Str "a",Space,Str "deletion."]]

Binary file not shown.

View file

@ -0,0 +1 @@
[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "text",Space,Str "with",Space,Str "two",Space,Str "exciting",Space,Str "insertions."]]