diff --git a/integrationtest/org/daisy/dotify/formatter/test/SequenceBreakTest.java b/integrationtest/org/daisy/dotify/formatter/test/SequenceBreakTest.java index ccdee291..86882f94 100644 --- a/integrationtest/org/daisy/dotify/formatter/test/SequenceBreakTest.java +++ b/integrationtest/org/daisy/dotify/formatter/test/SequenceBreakTest.java @@ -16,7 +16,7 @@ public class SequenceBreakTest extends AbstractFormatterEngineTest { @Test - public void testParsing() throws + public void parsingTest() throws LayoutEngineException, IOException, PagedMediaWriterConfigurationException { @@ -27,4 +27,16 @@ public void testParsing() throws ); } + @Test + public void breakBeforePage1Test() throws + LayoutEngineException, + IOException, + PagedMediaWriterConfigurationException { + testPEF( + "resource-files/sequence-break/break-before-page-1-input.obfl", + "resource-files/sequence-break/break-before-page-1-expected.pef", + true + ); + } + } diff --git a/integrationtest/org/daisy/dotify/formatter/test/resource-files/sequence-break/break-before-page-1-expected.pef b/integrationtest/org/daisy/dotify/formatter/test/resource-files/sequence-break/break-before-page-1-expected.pef new file mode 100644 index 00000000..7812cdca --- /dev/null +++ b/integrationtest/org/daisy/dotify/formatter/test/resource-files/sequence-break/break-before-page-1-expected.pef @@ -0,0 +1,24 @@ + + + + + application/x-pef+xml + identifier? + 2020-08-10 + break-before="page" (1) + Tests a scenario with two content sequences and the second one has break-before="page" + + + + +
+ + ⠤⠤⠤ + + + ⠤⠤⠤ + +
+
+ +
diff --git a/integrationtest/org/daisy/dotify/formatter/test/resource-files/sequence-break/break-before-page-1-input.obfl b/integrationtest/org/daisy/dotify/formatter/test/resource-files/sequence-break/break-before-page-1-input.obfl new file mode 100644 index 00000000..4e0ab4df --- /dev/null +++ b/integrationtest/org/daisy/dotify/formatter/test/resource-files/sequence-break/break-before-page-1-input.obfl @@ -0,0 +1,19 @@ + + + break-before="page" (1) + Tests a scenario with two content sequences and the + second one has break-before="page" + + + +
+