From c3768085f8ab68cd61bae4d132b74d9edd813ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 29 Dec 2018 21:49:41 +0100 Subject: testing: add a test for TOC levels in the XML output. For good measure, this one works. --- testing/079/levels.xml | 41 +++++++++++++++++++++++++++++++++++++++++ testing/079_tableofcontents.dox | 17 +++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 testing/079/levels.xml diff --git a/testing/079/levels.xml b/testing/079/levels.xml new file mode 100644 index 0000000..bbb4232 --- /dev/null +++ b/testing/079/levels.xml @@ -0,0 +1,41 @@ + + + + levels + A page with two-level TOC + + + A section that's in TOC + levels_1first + + + A subsection that's in TOC + levels_1first2 + + + + + A section that's in TOC again + levels_1second + + + + + + + A section that's in TOC + + A subsection that's in TOC + + A subsubsection that's not in TOC + Nay! + + + + + A section that's in TOC again + Yay! + + + + diff --git a/testing/079_tableofcontents.dox b/testing/079_tableofcontents.dox index 499771d..7512463 100644 --- a/testing/079_tableofcontents.dox +++ b/testing/079_tableofcontents.dox @@ -1,5 +1,6 @@ // objective: test TOC generation for an empty page // check: empty.xml +// check: levels.xml /** @page empty An empty page @@ -7,3 +8,19 @@ With an empty TOC. */ + +/** +@page levels A page with two-level TOC + +@tableofcontents{xml:2} + +@section first A section that's in TOC +@subsection first2 A subsection that's in TOC +@subsubsection first3 A subsubsection that's not in TOC + +Nay! + +@section second A section that's in TOC again + +Yay! +*/ -- cgit v0.12