From 8b4103a8f52fddd7fa2306c2c238f57440e11bf7 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Thu, 25 Feb 2021 15:39:59 +0100 Subject: [PATCH] Some tests added --- ...mple.java => PageBreaksBeforeHeading.java} | 5 +-- .../html5/PageSectionStyles.java | 29 +++++++++++++ .../regressionTests/html5/Sections.java | 29 +++++++++++++ testdocuments/input/heading_with_sections.odt | Bin 0 -> 11038 bytes testdocuments/input/image_after_section.odt | Bin 0 -> 15720 bytes .../model/heading_with_sections.html | 41 ++++++++++++++++++ testdocuments/model/image_after_section.html | 27 ++++++++++++ 7 files changed, 127 insertions(+), 4 deletions(-) rename src/r_tests/java/w2phtml/regressionTests/{TestExample.java => PageBreaksBeforeHeading.java} (84%) create mode 100644 src/r_tests/java/w2phtml/regressionTests/html5/PageSectionStyles.java create mode 100644 src/r_tests/java/w2phtml/regressionTests/html5/Sections.java create mode 100644 testdocuments/input/heading_with_sections.odt create mode 100644 testdocuments/input/image_after_section.odt create mode 100644 testdocuments/model/heading_with_sections.html create mode 100644 testdocuments/model/image_after_section.html diff --git a/src/r_tests/java/w2phtml/regressionTests/TestExample.java b/src/r_tests/java/w2phtml/regressionTests/PageBreaksBeforeHeading.java similarity index 84% rename from src/r_tests/java/w2phtml/regressionTests/TestExample.java rename to src/r_tests/java/w2phtml/regressionTests/PageBreaksBeforeHeading.java index 570c52e..87dfedb 100644 --- a/src/r_tests/java/w2phtml/regressionTests/TestExample.java +++ b/src/r_tests/java/w2phtml/regressionTests/PageBreaksBeforeHeading.java @@ -10,7 +10,7 @@ import org.apache.commons.io.FileUtils; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; -public class TestExample { +public class PageBreaksBeforeHeading { @Test @DisplayName("Heading with page break before") @@ -23,11 +23,8 @@ public class TestExample { arguments.add("./testdocuments/input/heading_with_page_break_before.odt"); arguments.add("./testdocuments/output/heading_with_page_break_before.html"); w2phtml.Application.main(arguments.toArray(new String[0])); -// System.out.println("Working Directory = " + System.getProperty("user.dir")); File result = new File("./testdocuments/output/heading_with_page_break_before.html"); File model = new File("./testdocuments/model/heading_with_page_break_before.html"); -// System.out.println(result.exists()); -// System.out.println(model.exists()); assertTrue( FileUtils.contentEquals(result, model),"The files differ!"); } } diff --git a/src/r_tests/java/w2phtml/regressionTests/html5/PageSectionStyles.java b/src/r_tests/java/w2phtml/regressionTests/html5/PageSectionStyles.java new file mode 100644 index 0000000..6064784 --- /dev/null +++ b/src/r_tests/java/w2phtml/regressionTests/html5/PageSectionStyles.java @@ -0,0 +1,29 @@ +package w2phtml.regressionTests.html5; + +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +import org.apache.commons.io.FileUtils; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; + +public class PageSectionStyles { + @Test + @DisplayName("Page styles and sections") + void testExample() throws Exception{ + String testName = "image_after_section"; + List arguments = new ArrayList(); + arguments.add("-page_break_style"); + arguments.add("height:3em;margin-top:1em;margin-bottom:1em;background-color:red;"); + arguments.add("-html5"); + arguments.add("./testdocuments/input/"+testName+".odt"); + arguments.add("./testdocuments/output/"+testName+".html"); + w2phtml.Application.main(arguments.toArray(new String[0])); + File result = new File("./testdocuments/output/"+testName+".html"); + File model = new File("./testdocuments/model/"+testName+".html"); + assertTrue( FileUtils.contentEquals(result, model),"The files differ!"); +} +} diff --git a/src/r_tests/java/w2phtml/regressionTests/html5/Sections.java b/src/r_tests/java/w2phtml/regressionTests/html5/Sections.java new file mode 100644 index 0000000..5288d4e --- /dev/null +++ b/src/r_tests/java/w2phtml/regressionTests/html5/Sections.java @@ -0,0 +1,29 @@ +package w2phtml.regressionTests.html5; + +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +import org.apache.commons.io.FileUtils; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; + +public class Sections { + @Test + @DisplayName("Heading with sections") + void testExample() throws Exception{ + String testName = "heading_with_sections"; + List arguments = new ArrayList(); + arguments.add("-page_break_style"); + arguments.add("height:3em;margin-top:1em;margin-bottom:1em;background-color:red;"); + arguments.add("-html5"); + arguments.add("./testdocuments/input/"+testName+".odt"); + arguments.add("./testdocuments/output/"+testName+".html"); + w2phtml.Application.main(arguments.toArray(new String[0])); + File result = new File("./testdocuments/output/"+testName+".html"); + File model = new File("./testdocuments/model/"+testName+".html"); + assertTrue( FileUtils.contentEquals(result, model),"The files differ!"); + } +} diff --git a/testdocuments/input/heading_with_sections.odt b/testdocuments/input/heading_with_sections.odt new file mode 100644 index 0000000000000000000000000000000000000000..8f2de7bbde2cbba9c7c92a701f9fb1b48ed197a6 GIT binary patch literal 11038 zcmcI~WmFv5+I8dZZh-&+f)j#EaEIXT?%KEox8Ux<-QC^Y9fG?A4gQh2D>u1wXJ*~^ z$M>vNt4>$--gT@`KXvw&76$`I2LPY}05CfhS zI+iAe26jMNTYbZk=n+dFdSu^IPCtXuc^*0l2wRH52GjI*CVyoJy7MH|)z+|RMVaiv zgY@amQX$5*u30+1JdfnON>;F_~l6p0t@q{Sfr6Kr<#t*j~FW) zEU_tcL!EJWkhQxiGU%Km&S~VDkzY+ySVjxl5FVHF7??2JX%BuBTt#U>85zxnuP`e?C)U=Rjp9 z+MQ_I3*gL)eU`Dmgq0SDf{vQ35{Co<0DQmzfPeMh&%yY2=e-ngUk-jNOG6VQd)q&T z!R{TM9Z&~oZ>OtcOZR`n0j;det#vF7%>R!#Yb$Ge>zA>%{|6l5U)0mYLdVF!j*ia+ zXrW_m_YYwFzX0p#=^2VyO)QP&@hO3>%lXlm(@aoPEXkAs#DWQoIW7bB!t>A6AdP9S=34u&Qtn#A@2K;Me# ztf5K0HfJZrJK)tA1Y*EDZ`02*ai1IlFjKN#Uw`7BtHsTDC3Z)|*cjX?rZz(iqGm6H zAvYc}R#+yi~6uQ;?lpnq;@`+zu-?*{bn&_uMt;zzMz8y^}q!h~!q zlb0I2J>A|rGg}H8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o;?j(t9JonaR}V7J?CG$snCJB1R>*l*oE1l})B08otLP6CHa-3ZuGS15>BVeK7`2 zD$EO7DWkt8SWG;}mnQ7#t6tB5uZgq4ur+aKpvKqWgw;O73TP*AA}UR^$g=iIE{SSa zom!pi6s>Jk@T8&4B5Tpo&n$S3s#pmxfk7m4jp~nrjgJ@MV!-n7p%<9x*5DCVK18WI zax&)nX4*k?SDsp;rT8{_v`Tuab1p~(f z{5cl!v5S78AIL-n>3?$l*h~2pPWJ>l{7JHp(SLXCBLwjW=MOjEpE>^txBGb?_E^LJ z2)_Gm<$p2*08hZLpVa>c!hQwg{kfbc-{YSI{^+ax`%3);=lxHmaQ=ampJ2T|m-5>- zS^t5QU%`8SF6Rk^_mgt|K+bQ$eE(BPtA8Nrx8S}%m-JgbKYR4i_`RNgg8lwn%5OEK z@F!A!fdBp}=f@!a74`7jLHzzv&aYs=AA|S@=dWJuPpF8WRQR~F_z33x2S(xt*N>t9 zdk^=YTv(4Tr+?<}{(C9EcT@c-B_8en(P{NZ5kH#u>mKUU!RAlueMHFqa?JUA#$V0A y(-!Mba(Ki#|J-o>J>Rb%s3#-wlMY}0iOEoqhI({<2LR9?e|?YNwP4PtyZ-{`YF=~z literal 0 HcmV?d00001 diff --git a/testdocuments/model/heading_with_sections.html b/testdocuments/model/heading_with_sections.html new file mode 100644 index 0000000..27aa34e --- /dev/null +++ b/testdocuments/model/heading_with_sections.html @@ -0,0 +1,41 @@ + + + + Default + + + + +
+
+

BEFORE HEADING

+
+
+
+
+
+ +
+
+
+
+
+

Heading 1

+

Tex

+
+
+
+
+

Heading 1

+
+
+
+
+
+ +
+
+ + diff --git a/testdocuments/model/image_after_section.html b/testdocuments/model/image_after_section.html new file mode 100644 index 0000000..264ff68 --- /dev/null +++ b/testdocuments/model/image_after_section.html @@ -0,0 +1,27 @@ + + + + Default + + + + +
+
+

First column

+

second column

+
+
+
+
+

Изображение1

+
+ +
+ +