This library module contains XQSuite tests for the documentation app.
version | 1.0.0 |
author | eXist-db |
tests:equal-listing($path1 as xs:string, $path2 as xs:string) as xs:boolean
Check if two listings that should be identical actually are. Txt and xml listings cannot be easily displayed via <xref> or xinclude so unfortunately this is necessary, to avoid conflicting information.
$path1 | $path1 |
$path2 | $path2 |
tests:missing-id() as item()*
see if all sections have an ID (now inforced via schema)
tests:no-ecaped-listings() as item()*
Make sure that programlistings for xml do not contain string contents use <tag> for short snippets, listing-x.xml files for trees.
tests:no-txt-xmls() as item()*
Check if listings marked as xml are well-formed and stored as xml. While it is sometimes necessary to store xml as txt that is not well : formed, limiting this to when necessary helps us keep examples valid.
tests:orphan-listing() as item()*
Run the diagnose listings page and see if there are new Errors
tests:toc-inline() as item()*
See if ToC rendering is WAI