test/test_epubmaker.rb in review-5.3.0 vs test/test_epubmaker.rb in review-5.4.0

- old
+ new

@@ -4,10 +4,11 @@ class EPUBMakerTest < Test::Unit::TestCase def setup config = ReVIEW::Configure.values config.merge!( 'bookname' => 'sample', + 'booktitle' => 'Sample Book', 'title' => 'Sample Book', 'epubversion' => 2, 'urnid' => 'http://example.jp/', 'date' => '2011-01-01', 'language' => 'en', @@ -316,16 +317,16 @@ <item id="sample" href="sample.html" media-type="application/xhtml+xml"/> <item id="ch01-html" href="ch01.html" media-type="application/xhtml+xml"/> <item id="ch02-html" href="ch02.html" media-type="application/xhtml+xml"/> <item id="ch03-html" href="ch03.html" media-type="application/xhtml+xml"/> <item id="ch04-html" href="ch04.html" media-type="application/xhtml+xml"/> - <item id="sample-png" href="sample.png" media-type="image/png"/> - <item id="sample-jpg" href="sample.jpg" media-type="image/jpeg"/> + <item id="sample-GIF" href="sample.GIF" media-type="image/gif"/> <item id="sample-JPEG" href="sample.JPEG" media-type="image/jpeg"/> <item id="sample-SvG" href="sample.SvG" media-type="image/svg+xml"/> - <item id="sample-GIF" href="sample.GIF" media-type="image/gif"/> <item id="sample-css" href="sample.css" media-type="text/css"/> + <item id="sample-jpg" href="sample.jpg" media-type="image/jpeg"/> + <item id="sample-png" href="sample.png" media-type="image/png"/> </manifest> <spine toc="ncx"> <itemref idref="sample" linear="no"/> <itemref idref="ch01-html"/> <itemref idref="ch02-html"/> @@ -804,23 +805,15 @@ <meta charset="UTF-8" /> <meta name="generator" content="Re:VIEW" /> <title>Sample Book</title> </head> <body> - <h1 class="tp-title">Sample Book</h1> - <p> - <br /> - <br /> - </p> - <h2 class="tp-author">Mr.Smith</h2> - <p> - <br /> - <br /> - <br /> - <br /> - </p> - <h3 class="tp-publisher">BLUEPRINT</h3> +<div class="titlepage"> +<h1 class="tp-title">Sample Book</h1> +<h2 class="tp-author">Mr.Smith</h2> +<h3 class="tp-publisher">BLUEPRINT</h3> +</div> </body> </html> EOT assert_equal expect, output end @@ -840,22 +833,14 @@ <meta charset="UTF-8" /> <meta name="generator" content="Re:VIEW" /> <title>Sample Book</title> </head> <body> - <h1 class="tp-title">Sample Book</h1> - <p> - <br /> - <br /> - </p> - <h2 class="tp-author">Mr.Smith</h2> - <p> - <br /> - <br /> - <br /> - <br /> - </p> - <h3 class="tp-publisher">BLUEPRINT</h3> +<div class="titlepage"> +<h1 class="tp-title">Sample Book</h1> +<h2 class="tp-author">Mr.Smith</h2> +<h3 class="tp-publisher">BLUEPRINT</h3> +</div> </body> </html> EOT assert_equal expect, output end