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 0000000..8f2de7b
Binary files /dev/null and b/testdocuments/input/heading_with_sections.odt differ
diff --git a/testdocuments/input/image_after_section.odt b/testdocuments/input/image_after_section.odt
new file mode 100644
index 0000000..93d2c7d
Binary files /dev/null and b/testdocuments/input/image_after_section.odt differ
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
+
+
+
+
+
+
+
+
+
+
+
+
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
+
+
+
+
+

+
+
+
+
+