Docx reader: Test for character styles.
This commit is contained in:
parent
9969b2ebee
commit
180f5cbe63
3 changed files with 8 additions and 0 deletions
|
@ -102,6 +102,10 @@ tests = [ testGroup "inlines"
|
|||
"font formatting"
|
||||
"docx/inline_formatting.docx"
|
||||
"docx/inline_formatting.native"
|
||||
, testCompare
|
||||
"font formatting with character styles"
|
||||
"docx/char_styles.docx"
|
||||
"docx/char_styles.native"
|
||||
, testCompare
|
||||
"hyperlinks"
|
||||
"docx/links.docx"
|
||||
|
|
BIN
tests/docx/char_styles.docx
Normal file
BIN
tests/docx/char_styles.docx
Normal file
Binary file not shown.
4
tests/docx/char_styles.native
Normal file
4
tests/docx/char_styles.native
Normal file
|
@ -0,0 +1,4 @@
|
|||
[Para [Emph [Str "This",Space,Str "is",Space,Str "all",Space,Str "in",Space,Str "an"],Space,Emph [Strong [Str "italic",Space,Str "style"],Str "."]]
|
||||
,Para [Emph [Str "This",Space,Str "is",Space,Str "an",Space,Str "italic"],Space,Str "style",Space,Emph [Str "with",Space,Str "some"],Space,Str "words",Space,Emph [Str "unitalicized."]]
|
||||
,Para [Strong [Str "This",Space,Str "is",Space,Str "all",Space,Str "in",Space,Str "a",Space,Emph [Str "strong",Space,Str "style"],Str "."]]
|
||||
,Para [Strong [Str "This",Space,Str "is",Space,Str "a",Space,Str "strong"],Space,Str "style",Space,Strong [Str "with",Space,Str "some"],Space,Str "words",Space,Strong [Str "ubolded."]]]
|
Loading…
Add table
Reference in a new issue