git.iko.soy/typeable/pandoc
on master help sign in
Docx test: adjust test for fix of bug

This commit adjusts the test cases for the Docx writer after the fix of #3930. - Adjusted test cases with inline images. The inline images now have the correct sizing, title and description. - Modified the test case to include an image multiple times with different sizing each time. - Tested on Windows 8.1 with Word 2007 (12.0.6705.5000) The files are not corrupted and display exactly what is expected.

commitaadac3c8911300676333596f8428532dd43d461f authorlaptop1\Andrew <andrewjpritchard@gmail.com> dateSat 24 Feb 2018, 00:25 (9 years ago) parent03d8696
3 files changed+8−5
test/docx/golden/image.docx test/docx/golden/inline_images.docx test/docx/image_writer_test.native+8−5
test/docx/golden/image.docx

Binary file not shown.

test/docx/golden/inline_images.docx

Binary file not shown.

test/docx/image_writer_test.native+8−5
@@ -1,5 +1,8 @@
1−Pandoc (Meta {unMeta = fromList []})
2−[Para [Image ("",[],[]) [] ("lalune.jpg","")]
3−,Para [Image ("",[],[]) [Str "The",Space,Str "Moon"] ("lalune.jpg","fig:")]
4−,Header 1 ("one-more",[],[]) [Str "One",Space,Str "More"]
5−,Para [Image ("",[],[]) [Str "The",Space,Str "Moon"] ("lalune.jpg","fig:")]]
1+[Para [Str "No",Space,Str "width",Space,Str "given:"]
2+,Para [Image ("",[],[]) [Str "testimg"] ("lalune.jpg","fig:")]
3+,Para [Str "With",Space,Str "height",Space,Str "10cm:"]
4+,Para [Image ("",[],[("height","10cm")]) [Str "2testimg"] ("lalune.jpg","fig:")]
5+,Para [Str "With",Space,Str "width",Space,Str "6cm:"]
6+,Para [Image ("",[],[("width","6cm")]) [Str "3testimg"] ("lalune.jpg","fig:")]
7+,Header 1 ("with-height-3in-and-width-6in",[],[]) [Str "With",Space,Str "height",Space,Str "3in",Space,Str "and",Space,Str "width",Space,Str "6in:"]
8+,Para [Image ("",[],[("width","6in"),("height","3in")]) [Str "4testimg"] ("lalune.jpg","fig:")]]