From cdaa80e718ac177fb355819fc48c57f77d2a6bd1 Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Tue, 27 Feb 2018 09:34:24 -0500 Subject: Powerpoint writer: add test for table and list syntax These were never added when the tests were first created. Output files checked in MS PowerPoint 2013 (Windows 10, VBox). No corruption, and output as expected. --- test/pptx/lists.native | 18 ++++++++++++++++++ test/pptx/lists.pptx | Bin 0 -> 26765 bytes test/pptx/lists_templated.pptx | Bin 0 -> 394091 bytes test/pptx/tables.native | 35 +++++++++++++++++++++++++++++++++++ test/pptx/tables.pptx | Bin 0 -> 27175 bytes test/pptx/tables_templated.pptx | Bin 0 -> 394504 bytes 6 files changed, 53 insertions(+) create mode 100644 test/pptx/lists.native create mode 100644 test/pptx/lists.pptx create mode 100644 test/pptx/lists_templated.pptx create mode 100644 test/pptx/tables.native create mode 100644 test/pptx/tables.pptx create mode 100644 test/pptx/tables_templated.pptx (limited to 'test/pptx') diff --git a/test/pptx/lists.native b/test/pptx/lists.native new file mode 100644 index 000000000..e08580cd5 --- /dev/null +++ b/test/pptx/lists.native @@ -0,0 +1,18 @@ +[Header 1 ("lists",[],[]) [Str "Lists"] +,BulletList + [[Para [Str "Bulleted",Space,Str "bulleted",Space,Str "lists."]] + ,[Para [Str "And",Space,Str "go",Space,Str "to",Space,Str "aribtrary",Space,Str "depth."] + ,BulletList + [[Para [Str "Like",Space,Str "this"] + ,BulletList + [[Plain [Str "Or",Space,Str "this"]]]] + ,[Para [Str "Back",Space,Str "to",Space,Str "here."]]]]] +,Header 1 ("lists-continued",[],[]) [Str "Lists",Space,Str "(continued)"] +,Para [Str "Lists",Space,Str "can",Space,Str "also",Space,Str "be",Space,Str "numbered:"] +,OrderedList (1,Decimal,Period) + [[Para [Str "Tomatoes"]] + ,[Para [Str "Potatoes",Space,Str "of",Space,Str "various",Space,Str "sorts"] + ,OrderedList (1,LowerAlpha,Period) + [[Para [Str "sweet",Space,Str "potatoes"]] + ,[Para [Str "russet",Space,Str "potates"]]]] + ,[Para [Str "Tornadoes,",Space,Str "for",Space,Str "the",Space,Str "rhyme."]]]] diff --git a/test/pptx/lists.pptx b/test/pptx/lists.pptx new file mode 100644 index 000000000..acb0841ce Binary files /dev/null and b/test/pptx/lists.pptx differ diff --git a/test/pptx/lists_templated.pptx b/test/pptx/lists_templated.pptx new file mode 100644 index 000000000..14570c951 Binary files /dev/null and b/test/pptx/lists_templated.pptx differ diff --git a/test/pptx/tables.native b/test/pptx/tables.native new file mode 100644 index 000000000..e41b7bc8d --- /dev/null +++ b/test/pptx/tables.native @@ -0,0 +1,35 @@ +[Header 2 ("a-table-with-a-caption",[],[]) [Str "A",Space,Str "Table,",Space,Str "with",Space,Str "a",Space,Str "caption"] +,Table [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax,",Space,Str "with",Space,Str "alignment"] [AlignRight,AlignLeft,AlignCenter,AlignDefault] [0.0,0.0,0.0,0.0] + [[Plain [Str "Right"]] + ,[Plain [Str "Left"]] + ,[Plain [Str "Center"]] + ,[Plain [Str "Default"]]] + [[[Plain [Str "12"]] + ,[Plain [Str "12"]] + ,[Plain [Str "12"]] + ,[Plain [Str "12"]]] + ,[[Plain [Str "123"]] + ,[Plain [Str "123"]] + ,[Plain [Str "123"]] + ,[Plain [Str "123"]]] + ,[[Plain [Str "1"]] + ,[Plain [Str "1"]] + ,[Plain [Str "1"]] + ,[Plain [Str "1"]]]] +,Table [] [AlignRight,AlignLeft,AlignCenter,AlignDefault] [0.0,0.0,0.0,0.0] + [[Plain [Str "Right"]] + ,[Plain [Str "Left"]] + ,[Plain [Str "Center"]] + ,[Plain [Str "Default"]]] + [[[Plain [Str "12"]] + ,[Plain [Str "12"]] + ,[Plain [Str "12"]] + ,[Plain [Str "12"]]] + ,[[Plain [Str "123"]] + ,[Plain [Str "123"]] + ,[Plain [Str "123"]] + ,[Plain [Str "123"]]] + ,[[Plain [Str "1"]] + ,[Plain [Str "1"]] + ,[Plain [Str "1"]] + ,[Plain [Str "1"]]]]] diff --git a/test/pptx/tables.pptx b/test/pptx/tables.pptx new file mode 100644 index 000000000..0e8aea9ba Binary files /dev/null and b/test/pptx/tables.pptx differ diff --git a/test/pptx/tables_templated.pptx b/test/pptx/tables_templated.pptx new file mode 100644 index 000000000..0ae560ad3 Binary files /dev/null and b/test/pptx/tables_templated.pptx differ -- cgit v1.2.3