chiark / gitweb /
doxygen: harden the "anchor in both group and namespace" test.
authorVladimír Vondruš <mosra@centrum.cz>
Fri, 22 Feb 2019 21:05:44 +0000 (22:05 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 23 Feb 2019 00:09:59 +0000 (01:09 +0100)
doxygen/test/contents_anchor_in_both_group_and_namespace/group__fizzbuzz.html [new file with mode: 0644]
doxygen/test/test_contents.py

diff --git a/doxygen/test/contents_anchor_in_both_group_and_namespace/group__fizzbuzz.html b/doxygen/test/contents_anchor_in_both_group_and_namespace/group__fizzbuzz.html
new file mode 100644 (file)
index 0000000..3940b91
--- /dev/null
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8" />
+  <title>A group module | My Project</title>
+  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
+  <link rel="stylesheet" href="m-dark+doxygen.compiled.css" />
+  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+</head>
+<body>
+<header><nav id="navigation">
+  <div class="m-container">
+    <div class="m-row">
+      <a href="index.html" id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">My Project</a>
+    </div>
+  </div>
+</nav></header>
+<main><article>
+  <div class="m-container m-container-inflatable">
+    <div class="m-row">
+      <div class="m-col-l-10 m-push-l-1">
+        <h1>
+          A group <span class="m-thin">module</span></h1>
+        <div class="m-block m-default">
+          <h3>Contents</h3>
+          <ul>
+            <li>
+              Reference
+              <ul>
+                <li><a href="#func-members">Functions</a></li>
+              </ul>
+            </li>
+          </ul>
+        </div>
+        <section id="func-members">
+          <h2><a href="#func-members">Functions</a></h2>
+          <dl class="m-dox">
+            <dt>
+              <span class="m-dox-wrap-bumper">void <a href="#ga809d062bb88fcd3bd6cf38be250aa348" class="m-dox">bar</a>(</span><span class="m-dox-wrap">)</span>
+            </dt>
+            <dd>Bar.</dd>
+          </dl>
+        </section>
+        <section>
+          <h2>Function documentation</h2>
+          <section class="m-dox-details" id="ga809d062bb88fcd3bd6cf38be250aa348"><div>
+            <h3>
+              <span class="m-dox-wrap-bumper">void </span><span class="m-dox-wrap"><span class="m-dox-wrap-bumper"><a href="#ga809d062bb88fcd3bd6cf38be250aa348" class="m-dox-self">bar</a>(</span><span class="m-dox-wrap">)</span></span>
+            </h3>
+            <p>Bar.</p>
+<p><a name="this_anchor"></a> <a href="group__fizzbuzz.html#this_anchor" class="m-dox">More details</a></p>
+          </div></section>
+        </section>
+      </div>
+    </div>
+  </div>
+</article></main>
+</body>
+</html>
index f3928360f9557f85c4cce79c73a71115f3753ac8..4c5ae36e637bd350056ad86316f75632e51c9ad1 100644 (file)
@@ -363,8 +363,9 @@ class AnchorInBothGroupAndNamespace(IntegrationTestCase):
         super().__init__(__file__, 'anchor_in_both_group_and_namespace', *args, **kwargs)
 
     def test(self):
-        self.run_dox2html5(wildcard='namespaceFoo.xml')
+        self.run_dox2html5(wildcard='*.xml')
         self.assertEqual(*self.actual_expected_contents('namespaceFoo.html'))
+        self.assertEqual(*self.actual_expected_contents('group__fizzbuzz.html'))
 
 class UnexpectedSections(IntegrationTestCase):
     def __init__(self, *args, **kwargs):