summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorVladimír Vondruš <mosra@centrum.cz>2018-12-29 20:49:41 (GMT)
committerVladimír Vondruš <mosra@centrum.cz>2018-12-29 23:47:41 (GMT)
commitc3768085f8ab68cd61bae4d132b74d9edd813ce0 (patch)
treec25f84e1969c3b2f0f6a14a1036d8fe0e6069453 /testing
parente26a5b8eed8a012e6a400f1ed6baf27980668b53 (diff)
downloadDoxygen-c3768085f8ab68cd61bae4d132b74d9edd813ce0.zip
Doxygen-c3768085f8ab68cd61bae4d132b74d9edd813ce0.tar.gz
Doxygen-c3768085f8ab68cd61bae4d132b74d9edd813ce0.tar.bz2
testing: add a test for TOC levels in the XML output.
For good measure, this one works.
Diffstat (limited to 'testing')
-rw-r--r--testing/079/levels.xml41
-rw-r--r--testing/079_tableofcontents.dox17
2 files changed, 58 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="">
+ <compounddef id="levels" kind="page">
+ <compoundname>levels</compoundname>
+ <title>A page with two-level TOC</title>
+ <tableofcontents>
+ <tocsect>
+ <name>A section that's in TOC</name>
+ <reference>levels_1first</reference>
+ <tableofcontents>
+ <tocsect>
+ <name>A subsection that's in TOC</name>
+ <reference>levels_1first2</reference>
+ </tocsect>
+ </tableofcontents>
+ </tocsect>
+ <tocsect>
+ <name>A section that's in TOC again</name>
+ <reference>levels_1second</reference>
+ </tocsect>
+ </tableofcontents>
+ <briefdescription>
+ </briefdescription>
+ <detaileddescription>
+ <sect1 id="levels_1first">
+ <title>A section that's in TOC</title>
+ <sect2 id="levels_1first2">
+ <title>A subsection that's in TOC</title>
+ <sect3 id="levels_1first3">
+ <title>A subsubsection that's not in TOC</title>
+ <para>Nay!</para>
+ </sect3>
+ </sect2>
+ </sect1>
+ <sect1 id="levels_1second">
+ <title>A section that's in TOC again</title>
+ <para>Yay! </para>
+ </sect1>
+ </detaileddescription>
+ </compounddef>
+</doxygen>
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!
+*/