Docx reader: add tests for i18n headers.

This tests blockquotes and headers in Russian. Previous tests make sure
that this doesn't produce a regression in en-us Header and Blockquotes.
This commit is contained in:
Jesse Rosenthal
2014-10-25 16:00:27 -04:00
parent 96c4b9e2e6
commit c0ddcb359e
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -159,6 +159,10 @@ tests = [ testGroup "inlines"
"headers in other languages"
"docx/danish_headers.docx"
"docx/danish_headers.native"
, testCompare
"i18n blocks (headers and blockquotes)"
"docx/i18n_blocks.docx"
"docx/i18n_blocks.native"
, testCompare
"lists"
"docx/lists.docx"
Binary file not shown.
+8
View File
@@ -0,0 +1,8 @@
[Header 1 ("this-is-heading-1",[],[]) [Str "This",Space,Str "is",Space,Str "Heading",Space,Str "1"]
,Header 2 ("this-is-heading-2",[],[]) [Str "This",Space,Str "is",Space,Str "Heading",Space,Str "2"]
,BlockQuote
[Para [Str "This",Space,Str "is",Space,Str "Quote"]
,Para [Str "This",Space,Str "is",Space,Str "Block",Space,Str "Text"]]
,BulletList
[[Para [Str "This",Space,Str "is",Space,Str "list",Space,Str "item",Space,Str "1"]]
,[Para [Str "This",Space,Str "is",Space,Str "list",Space,Str "item",Space,Str "2"]]]]