Powerpoint writer tests: add tests for two-column layout and images

Powerpoint output checked in MS PowerPoint 2013 (Windows)
This commit is contained in:
Jesse Rosenthal 2018-01-22 14:06:47 -05:00
parent 145c3f54f9
commit f8640fdff0
5 changed files with 24 additions and 0 deletions

View file

@ -213,4 +213,14 @@ tests = [ pptxTest
def { writerTableOfContents = True }
"pptx/endnotes.native"
"pptx/endnotes_toc.pptx"
, pptxTest
"images"
def
"pptx/images.native"
"pptx/images.pptx"
, pptxTest
"two-column layout"
def
"pptx/two_column.native"
"pptx/two_column.pptx"
]

5
test/pptx/images.native Normal file
View file

@ -0,0 +1,5 @@
Pandoc (Meta {unMeta = fromList []})
[Para [Image ("",[],[]) [] ("lalune.jpg","")]
,Para [Image ("",[],[]) [Str "The",Space,Str "Moon"] ("lalune.jpg","fig:")]
,Header 1 ("one-more",[],[]) [Str "One",Space,Str "More"]
,Para [Image ("",[],[]) [Str "The",Space,Str "Moon"] ("lalune.jpg","fig:")]]

BIN
test/pptx/images.pptx Normal file

Binary file not shown.

View file

@ -0,0 +1,9 @@
Pandoc (Meta {unMeta = fromList []})
[Header 1 ("two-column-layout",[],[]) [Str "Two-Column",Space,Str "Layout"]
,Div ("",["columns"],[])
[Div ("",["column"],[])
[Para [Str "One",Space,Str "paragraph."]
,Para [Str "Another",Space,Str "paragraph."]]
,Div ("",["column"],[])
[Para [Str "Second",Space,Str "column",Space,Str "paragraph."]
,Para [Str "Another",Space,Str "second",Space,Str "paragraph."]]]]

BIN
test/pptx/two_column.pptx Normal file

Binary file not shown.