From 0808449547a2ec3469dbcc82c1755d895c1057e5 Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Mon, 11 Aug 2014 23:10:50 -0400 Subject: [PATCH] Docx: Add dropcap tests. --- pandoc.cabal | 1 + tests/Tests/Readers/Docx.hs | 10 ++++++---- tests/docx.drop_cap.docx | Bin 0 -> 26931 bytes tests/docx.drop_cap.native | 4 ++++ 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 tests/docx.drop_cap.docx create mode 100644 tests/docx.drop_cap.native diff --git a/pandoc.cabal b/pandoc.cabal index 4b2da0f9e..587258dc2 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -177,6 +177,7 @@ Extra-Source-Files: tests/docx.codeblock.docx, tests/docx.deep_normalize.docx, tests/docx.definition_list.docx, + tests/docx.drop_cap.docx, tests/docx.hanging_indent.docx, tests/docx.headers.docx, tests/docx.image.docx, diff --git a/tests/Tests/Readers/Docx.hs b/tests/Tests/Readers/Docx.hs index c310cc8d7..65fdd4a55 100644 --- a/tests/Tests/Readers/Docx.hs +++ b/tests/Tests/Readers/Docx.hs @@ -82,14 +82,14 @@ compareMediaBagIO docxFile = do df <- B.readFile docxFile let (_, mb) = readDocx def df bools <- mapM - (\(fp, _, _) -> compareMediaPathIO fp mb docxFile) + (\(fp, _, _) -> compareMediaPathIO fp mb docxFile) (mediaDirectory mb) return $ and bools testMediaBagIO :: String -> FilePath -> IO Test testMediaBagIO name docxFile = do outcome <- compareMediaBagIO docxFile - return $ testCase name (assertBool + return $ testCase name (assertBool ("Media didn't match media bag in file " ++ docxFile) outcome) @@ -176,7 +176,10 @@ tests = [ testGroup "inlines" "code block" "docx.codeblock.docx" "docx.codeblock.native" - + , testCompare + "dropcap paragraphs" + "docx.drop_cap.docx" + "docx.drop_cap.native" ] , testGroup "track changes" [ testCompare @@ -229,4 +232,3 @@ tests = [ testGroup "inlines" ] ] - diff --git a/tests/docx.drop_cap.docx b/tests/docx.drop_cap.docx new file mode 100644 index 0000000000000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*&`Lqu;}HC=`svT1TKEsUgDIi4W$VvV^BQ_a zly~d+4_Zzt&L14LRp8rHeYeRq4=&WT+)RQli4G{fVt9FnO@4L?;@zzMHZ5G4m);3? z!{zUgMGh>nol=p(2)4i1h?sh$wQjfnc#bY74e-St5$Pv2MF2!-9EbsM= z0Ne2nPKgj3)};Sy3&g~3op=##KIxy%7p4bd)ml~DS$Yo?)3hTxb~gQOkmU7l`1MD7 zg=ov_DSM1hOj@(AQ0=&o^}4(ZI}U8*xw?cQYcIFTEasWZ-~3o19gxkjKW4_-Gp!M) zZ>0MiUcI07;K2pU_nujA{iW4mui%FMv?-b>!;ox5iqQ~|A5>VV zm^^xVdv{|vuZ4$J%F%zG?|K{Ne^R;WU+xvLP`&!r=ltZZ4|V@$SN%@CeBzh%jn2vG zk#@cRfHQcIvXGHU7dRJy{X!R5^uTB=*SiFGqZ)vEmjp~Bh&~3i66t0Mbd9Lz=p$=n z2A0hDPSr;@3H`iugjuPaSWZtz*N%RIGeWx%FH}4FdCm|ca35HSFd_{&?E)WFKs~+^ z-5ux?tq4Ot0}loS2MF@CE4p^{xgLb}^}utyu+99Sn}9y;fiU42@MJBB1F%hkpqqm_ zs)8_uf#G}@QfR=&SkSej_izygG)1B~15}`*Yeui#5t ZB)3D0^8jyFHjo-#AoK$!_w(RmGy#Xft2_Vz literal 0 HcmV?d00001 diff --git a/tests/docx.drop_cap.native b/tests/docx.drop_cap.native new file mode 100644 index 000000000..e6eb29de7 --- /dev/null +++ b/tests/docx.drop_cap.native @@ -0,0 +1,4 @@ +[Para [Str "D",Str "rop",Space,Str "cap."] +,Para [Str "Next",Space,Str "paragraph."] +,Para [Str "D",Str "rop",Space,Str "cap",Space,Str "in",Space,Str "margin."] +,Para [Str "Drop",Space,Str "cap",Space,Str "(not",Space,Str "really)."]]