Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds test for border alignment (closes #33)
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 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
21 changes: 21 additions & 0 deletions
21
test/org/daisy/dotify/engine/impl/resource-files/dp2/margin-region-and-border-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,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<pef xmlns="http://www.daisy.org/ns/2008/pef" version="2008-1"> | ||
<head> | ||
<meta> | ||
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">margin-region-and-border</dc:title> | ||
<dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">Tests combination of a left aligned margin-region and a border.</dc:description> | ||
<dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">application/x-pef+xml</dc:format> | ||
</meta> | ||
</head> | ||
<body> | ||
<volume cols="19" rows="5" rowgap="0" duplex="true"> | ||
<section> | ||
<page> | ||
<row>⠀⠀⠏⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠹</row> | ||
<row>⠀⠀⠇⠀⠀⠀⠀⠀⠿⠿⠿⠿⠿⠀⠀⠀⠀⠀⠸</row> | ||
<row>⠀⠀⠧⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠼</row> | ||
</page> | ||
</section> | ||
</volume> | ||
</body> | ||
</pef> |
20 changes: 20 additions & 0 deletions
20
test/org/daisy/dotify/engine/impl/resource-files/dp2/margin-region-and-border-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,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<obfl xmlns="http://www.daisy.org/ns/2011/obfl" version="2011-1" xml:lang="und" hyphenate="false"> | ||
<meta> | ||
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">margin-region-and-border</dc:title> | ||
<dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">Tests combination of a left aligned margin-region and a border.</dc:description> | ||
</meta> | ||
<layout-master name="master" duplex="true" page-width="19" page-height="5"> | ||
<default-template> | ||
<header/> | ||
<footer/> | ||
<margin-region align="left" width="2"> | ||
<indicators/> | ||
</margin-region> | ||
</default-template> | ||
</layout-master> | ||
<sequence master="master"> | ||
<block border-left-style="solid" border-left-align="outer" border-right-style="solid" border-right-align="outer" border-top-style="solid" border-top-align="outer" border-bottom-style="solid" border-bottom-align="outer" align="center">⠿⠿⠿⠿⠿ | ||
</block> | ||
</sequence> | ||
</obfl> |