diff --git a/integrationtest/org/daisy/dotify/formatter/test/TakenFromDP2Test.java b/integrationtest/org/daisy/dotify/formatter/test/TakenFromDP2Test.java index 9319d2bb..526bcb05 100644 --- a/integrationtest/org/daisy/dotify/formatter/test/TakenFromDP2Test.java +++ b/integrationtest/org/daisy/dotify/formatter/test/TakenFromDP2Test.java @@ -333,4 +333,14 @@ public void testBreakBeforeSheet() throws LayoutEngineException, IOException, Pa testPEF("resource-files/dp2/break-before-sheet-input.obfl", "resource-files/dp2/break-before-sheet-expected.pef", false); } + @Test + public void testTocTextDeprecated() throws LayoutEngineException, IOException, PagedMediaWriterConfigurationException { + testPEF("resource-files/dp2/toc-text-input-deprecated.obfl", + "resource-files/dp2/toc-text-expected.pef", true); + } + @Test + public void testTocText() throws LayoutEngineException, IOException, PagedMediaWriterConfigurationException { + testPEF("resource-files/dp2/toc-text-input.obfl", + "resource-files/dp2/toc-text-expected.pef", true); + } } diff --git a/integrationtest/org/daisy/dotify/formatter/test/resource-files/dp2/toc-text-expected.pef b/integrationtest/org/daisy/dotify/formatter/test/resource-files/dp2/toc-text-expected.pef new file mode 100644 index 00000000..4ebc251a --- /dev/null +++ b/integrationtest/org/daisy/dotify/formatter/test/resource-files/dp2/toc-text-expected.pef @@ -0,0 +1,47 @@ + + + + + toc-text + Tests toc-text. + application/x-pef+xml + + + + +
+ + ⠼⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠼⠃ + ⠿⠿⠿⠿⠀⠼⠚⠀⠼⠁ + ⠿⠿ + ⠿⠿⠀⠀⠀⠀⠀⠼⠃ + ⠿⠿⠿⠿ + +
+
+ + ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ + ⠿⠿ + ⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤ + ⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤ + ⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤ + ⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤ + + + ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ + ⠿⠿ + ⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤ + ⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤ + ⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤ + ⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤ + + + ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ + ⠿⠿⠿ + ⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤ + ⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤ + +
+
+ +
\ No newline at end of file diff --git a/integrationtest/org/daisy/dotify/formatter/test/resource-files/dp2/toc-text-input-deprecated.obfl b/integrationtest/org/daisy/dotify/formatter/test/resource-files/dp2/toc-text-input-deprecated.obfl new file mode 100644 index 00000000..fa34e2a7 --- /dev/null +++ b/integrationtest/org/daisy/dotify/formatter/test/resource-files/dp2/toc-text-input-deprecated.obfl @@ -0,0 +1,52 @@ + + + + toc-text-input-deprecated + Tests toc-entry elements without a toc-text child element (deprecated, #106). + + + +
+ + + + + + +
+