git.iko.soy/typeable/pandoc
on master help sign in
Docx Reader: Add test for VML images.

Since images are often visually (not structurally) placed on the page, people might not always get the results they're looking for here.

commite88119f2d144dc4a1463b0c451f11fdc6becc4c7 authorJesse Rosenthal <jrosenthal@jhu.edu> dateWed 21 Jan 2015, 13:38 (12 years ago) parenteb11c61
3 files changed+8
tests/Tests/Readers/Docx.hs+4 tests/docx/image_vml.docx tests/docx/image_vml.native+4
tests/Tests/Readers/Docx.hs+4
@@ -113,6 +113,10 @@ tests = [ testGroup "inlines"
113113 "inline image"
114114 "docx/image.docx"
115115 "docx/image_no_embed.native"
116+ , testCompare
117+ "VML image"
118+ "docx/image_vml.docx"
119+ "docx/image_vml.native"
116120 , testCompare
117121 "inline image in links"
118122 "docx/inline_images.docx"
tests/docx/image_vml.docxnew file

Binary file not shown.

tests/docx/image_vml.nativenew file+4
@@ -0,0 +1,4 @@
1+[Header 1 ("vml-image",[],[]) [Strong [Str "VML",Space,Str "Image"]]
2+,BlockQuote
3+ [Para [Str "It",Space,Str "should",Space,Str "follow",Space,Str "below:"]
4+ ,Para [Image [] ("media/image4.jpeg","")]]]