File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
src/main/xar-resources/modules Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,8 @@ declare
9696%test:name('ToC rendering' )
9797%test:assertTrue
9898function tests:toc-inline () {
99- let $output := <ul class = "toc" >
99+ let $toc :=
100+ <ul class = "toc" >
100101 <li>
101102 <a href = "#main-id" >Title of first main section</a>
102103 <ul>
@@ -108,12 +109,17 @@ function tests:toc-inline() {
108109 <li>
109110 <a href = "#next-id" >Title of second main section</a>
110111 </li>
111- <button class = "btn btn-outline-primary btn-sm btn-block" >
112- <a href = "https://github.com/eXist-db/documentation/issues/new?title=error on Document title" >Improve this article</a>
113- </button>
114- </ul>
115- return
116- docbook:toc-db5 ($tests:article) eq $output
112+ </ul>
113+
114+ let $improve-link :=
115+ <a
116+ class = "btn btn-outline-primary btn-sm btn-block"
117+ href = "https://github.com/eXist-db/documentation/issues/new?title=error on Document title"
118+ >Improve this article</a>
119+
120+ let $actual := docbook:toc-db5 ($tests:article)
121+
122+ return $actual[1 ] eq $toc and $actual[2 ] eq $improve-link
117123};
118124
119125(:~ Check if two listings that should be identical actually are.
You can’t perform that action at this time.
0 commit comments