test: add corner cases for epub nav

This commit is contained in:
Gauthier Roebroeck 2025-03-11 13:15:02 +08:00
parent d29902012d
commit 01ef2b056f
2 changed files with 4 additions and 4 deletions

View file

@ -54,8 +54,8 @@ class NavTest {
listOf(
EpubTocEntry("Spring", "${prefix}chapter 001.xhtml"),
EpubTocEntry("Summer", "${prefix}chapter 027.xhtml"),
EpubTocEntry("Fall", "${prefix}chapter053.xhtml"),
EpubTocEntry("Winter", "${prefix}chapter079.xhtml"),
EpubTocEntry("Fall", "${prefix}chapter053.xhtml#what:why"),
EpubTocEntry("Winter", "${prefix}chapter 079.xhtml"),
),
),
EpubTocEntry("Acknowledgments", "${prefix}acknowledgements.xhtml"),

View file

@ -18,8 +18,8 @@
<ol>
<li id="toc-chapter001"><a href="chapter 001.xhtml">Spring</a></li>
<li id="toc-chapter002"><a href="chapter%20027.xhtml">Summer</a></li>
<li id="toc-chapter003"><a href="chapter053.xhtml">Fall</a></li>
<li id="toc-chapter004"><a href="chapter079.xhtml">Winter</a></li>
<li id="toc-chapter003"><a href="chapter053.xhtml#what%3awhy">Fall</a></li>
<li id="toc-chapter004"><a href="chapter 079.xhtml">Winter</a></li>
</ol>
</li>
<li id="toc-acknowledgements"><a href="acknowledgements.xhtml">Acknowledgments</a></li>