forked from mtmse/dotify.formatter.impl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
brailleapps#32: Unit tests, with failures
- Loading branch information
1 parent
b490696
commit 2b099b5
Showing
20 changed files
with
455 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
.../daisy/dotify/formatter/test/resource-files/sequence-break/break-before-page-1-input.obfl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...isy/dotify/formatter/test/resource-files/sequence-break/break-before-page-11-expected.pef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<pef version="2008-1" xmlns="http://www.daisy.org/ns/2008/pef"> | ||
<head> | ||
<meta xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:format>application/x-pef+xml</dc:format> | ||
<dc:identifier>identifier?</dc:identifier> | ||
<dc:date>2020-08-10</dc:date> | ||
<dc:title>break-before page 1</dc:title> | ||
<dc:description>Tests a scenario with two content sequences and the second one has break-before="page"</dc:description> | ||
</meta> | ||
</head> | ||
<body> | ||
<volume cols="10" rows="6" rowgap="0" duplex="false"> | ||
<section> | ||
<page> | ||
<row>⠼⠁</row> | ||
<row>⠤⠤⠤</row> | ||
</page> | ||
<page> | ||
<row>⠼⠃</row> | ||
<row>⠤⠤⠤</row> | ||
</page> | ||
</section> | ||
</volume> | ||
</body> | ||
</pef> |
21 changes: 21 additions & 0 deletions
21
...daisy/dotify/formatter/test/resource-files/sequence-break/break-before-page-11-input.obfl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<obfl xmlns="http://www.daisy.org/ns/2011/obfl" version="2011-1" xml:lang="en"> | ||
<meta xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:title>break-before page 1</dc:title> | ||
<dc:description>Tests a scenario with two content sequences and the | ||
second one has break-before="page"</dc:description> | ||
</meta> | ||
<layout-master name="main" page-width="10" page-height="6" duplex="false"> | ||
<default-template> | ||
<header> | ||
<field><current-page/></field> | ||
</header> | ||
<footer/> | ||
</default-template> | ||
</layout-master> | ||
<sequence master="main"> | ||
<block>⠤⠤⠤</block> | ||
</sequence> | ||
<sequence master="main" break-before="page"> | ||
<block>⠤⠤⠤</block> | ||
</sequence> | ||
</obfl> |
22 changes: 22 additions & 0 deletions
22
...isy/dotify/formatter/test/resource-files/sequence-break/break-before-page-12-expected.pef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<pef version="2008-1" xmlns="http://www.daisy.org/ns/2008/pef"> | ||
<head> | ||
<meta xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:format>application/x-pef+xml</dc:format> | ||
<dc:identifier>identifier?</dc:identifier> | ||
<dc:date>2020-08-10</dc:date> | ||
<dc:title>break-before page 1</dc:title> | ||
<dc:description>Tests a scenario with two content sequences and the second one has break-before="page"</dc:description> | ||
</meta> | ||
</head> | ||
<body> | ||
<volume cols="10" rows="6" rowgap="0" duplex="true"> | ||
<section> | ||
<page> | ||
<row>⠼⠁</row> | ||
<row>⠤⠤⠤</row> | ||
</page> | ||
</section> | ||
</volume> | ||
</body> | ||
</pef> |
18 changes: 18 additions & 0 deletions
18
...daisy/dotify/formatter/test/resource-files/sequence-break/break-before-page-12-input.obfl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<obfl xmlns="http://www.daisy.org/ns/2011/obfl" version="2011-1" xml:lang="en"> | ||
<meta xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:title>break-before page 1</dc:title> | ||
<dc:description>Tests a scenario with two content sequences and the | ||
second one has break-before="page"</dc:description> | ||
</meta> | ||
<layout-master name="main" page-width="10" page-height="6" duplex="true"> | ||
<default-template> | ||
<header> | ||
<field><current-page/></field> | ||
</header> | ||
<footer/> | ||
</default-template> | ||
</layout-master> | ||
<sequence master="main" break-before="page"> | ||
<block>⠤⠤⠤</block> | ||
</sequence> | ||
</obfl> |
30 changes: 30 additions & 0 deletions
30
...isy/dotify/formatter/test/resource-files/sequence-break/break-before-page-13-expected.pef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<pef version="2008-1" xmlns="http://www.daisy.org/ns/2008/pef"> | ||
<head> | ||
<meta xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:format>application/x-pef+xml</dc:format> | ||
<dc:identifier>identifier?</dc:identifier> | ||
<dc:date>2020-08-10</dc:date> | ||
<dc:title>break-before page 1</dc:title> | ||
<dc:description>Tests a scenario with two content sequences and the second one has break-before="page"</dc:description> | ||
</meta> | ||
</head> | ||
<body> | ||
<volume cols="10" rows="6" rowgap="0" duplex="true"> | ||
<section> | ||
<page> | ||
<row>⠼⠁</row> | ||
<row>⠤⠤⠤</row> | ||
</page> | ||
<page> | ||
<row>⠼⠃</row> | ||
<row>⠤⠤⠤</row> | ||
</page> | ||
<page> | ||
<row>⠼⠉</row> | ||
<row>⠤⠤⠤</row> | ||
</page> | ||
</section> | ||
</volume> | ||
</body> | ||
</pef> |
24 changes: 24 additions & 0 deletions
24
...daisy/dotify/formatter/test/resource-files/sequence-break/break-before-page-13-input.obfl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<obfl xmlns="http://www.daisy.org/ns/2011/obfl" version="2011-1" xml:lang="en"> | ||
<meta xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:title>break-before page 1</dc:title> | ||
<dc:description>Tests a scenario with two content sequences and the | ||
second one has break-before="page"</dc:description> | ||
</meta> | ||
<layout-master name="main" page-width="10" page-height="6" duplex="true"> | ||
<default-template> | ||
<header> | ||
<field><current-page/></field> | ||
</header> | ||
<footer/> | ||
</default-template> | ||
</layout-master> | ||
<sequence master="main"> | ||
<block>⠤⠤⠤</block> | ||
</sequence> | ||
<sequence master="main" break-before="page"> | ||
<block>⠤⠤⠤</block> | ||
</sequence> | ||
<sequence master="main" break-before="page"> | ||
<block>⠤⠤⠤</block> | ||
</sequence> | ||
</obfl> |
32 changes: 32 additions & 0 deletions
32
...isy/dotify/formatter/test/resource-files/sequence-break/break-before-page-14-expected.pef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<pef version="2008-1" xmlns="http://www.daisy.org/ns/2008/pef"> | ||
<head> | ||
<meta xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:format>application/x-pef+xml</dc:format> | ||
<dc:identifier>identifier?</dc:identifier> | ||
<dc:date>2020-08-10</dc:date> | ||
<dc:title>break-before page 1</dc:title> | ||
<dc:description>Tests a scenario with two content sequences and the second one has break-before="page"</dc:description> | ||
</meta> | ||
</head> | ||
<body> | ||
<volume cols="10" rows="6" rowgap="0" duplex="true"> | ||
<section> | ||
<page> | ||
<row>⠼⠁</row> | ||
<row>⠤⠤⠤</row> | ||
</page> | ||
<page> | ||
<row>⠼⠃</row> | ||
<row>⠤⠤⠤</row> | ||
</page> | ||
</section> | ||
<section> | ||
<page> | ||
<row>⠼⠉</row> | ||
<row>⠤⠤⠤</row> | ||
</page> | ||
</section> | ||
</volume> | ||
</body> | ||
</pef> |
24 changes: 24 additions & 0 deletions
24
...daisy/dotify/formatter/test/resource-files/sequence-break/break-before-page-14-input.obfl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<obfl xmlns="http://www.daisy.org/ns/2011/obfl" version="2011-1" xml:lang="en"> | ||
<meta xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:title>break-before page 1</dc:title> | ||
<dc:description>Tests a scenario with two content sequences and the | ||
second one has break-before="page"</dc:description> | ||
</meta> | ||
<layout-master name="main" page-width="10" page-height="6" duplex="true"> | ||
<default-template> | ||
<header> | ||
<field><current-page/></field> | ||
</header> | ||
<footer/> | ||
</default-template> | ||
</layout-master> | ||
<sequence master="main"> | ||
<block>⠤⠤⠤</block> | ||
</sequence> | ||
<sequence master="main" break-before="page"> | ||
<block>⠤⠤⠤</block> | ||
</sequence> | ||
<sequence master="main"> | ||
<block>⠤⠤⠤</block> | ||
</sequence> | ||
</obfl> |
26 changes: 26 additions & 0 deletions
26
...aisy/dotify/formatter/test/resource-files/sequence-break/break-before-page-2-expected.pef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<pef version="2008-1" xmlns="http://www.daisy.org/ns/2008/pef"> | ||
<head> | ||
<meta xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:format>application/x-pef+xml</dc:format> | ||
<dc:identifier>identifier?</dc:identifier> | ||
<dc:date>2020-08-11</dc:date> | ||
<dc:title>break-before page 2</dc:title> | ||
<dc:description>Tests a scenario where a TOC sequence is followed by a content sequence with break-before="page"</dc:description> | ||
</meta> | ||
</head> | ||
<body> | ||
<volume cols="10" rows="6" rowgap="0" duplex="true"> | ||
<section> | ||
<page> | ||
<row>⠼⠁</row> | ||
<row>⠤⠤</row> | ||
</page> | ||
<page> | ||
<row>⠼⠃</row> | ||
<row>⠤⠤⠤</row> | ||
</page> | ||
</section> | ||
</volume> | ||
</body> | ||
</pef> |
29 changes: 29 additions & 0 deletions
29
.../daisy/dotify/formatter/test/resource-files/sequence-break/break-before-page-2-input.obfl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<obfl xmlns="http://www.daisy.org/ns/2011/obfl" version="2011-1" xml:lang="en"> | ||
<meta xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:title>break-before page 2</dc:title> | ||
<dc:description>Tests a scenario where a TOC sequence is followed by a | ||
content sequence with break-before="page"</dc:description> | ||
</meta> | ||
<layout-master name="main" page-width="10" page-height="6" duplex="true"> | ||
<default-template> | ||
<header> | ||
<field><current-page/></field> | ||
</header> | ||
<footer/> | ||
</default-template> | ||
</layout-master> | ||
<volume-template sheets-in-volume-max="5"> | ||
<pre-content> | ||
<toc-sequence toc="toc" range="document" master="main" page-number-counter="pnc"/> | ||
</pre-content> | ||
<post-content/> | ||
</volume-template> | ||
<table-of-contents name="toc"> | ||
<toc-block> | ||
<toc-entry ref-id="block">⠤⠤</toc-entry> | ||
</toc-block> | ||
</table-of-contents> | ||
<sequence master="main" break-before="page" page-number-counter="pnc"> | ||
<block id="block">⠤⠤⠤</block> | ||
</sequence> | ||
</obfl> |
Oops, something went wrong.