Skip to content

Commit 5fe47ca

Browse files
committed
[clang-doc] modify unittest
1 parent bcc4b0d commit 5fe47ca

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ TEST(HTMLGeneratorTest, emitNamespaceHTML) {
9292
</div>
9393
<h2 id="Enums">Enums</h2>
9494
<div>
95-
<h3 id="0000000000000000000000000000000000000000">enum OneEnum</h3>
95+
<table id="0000000000000000000000000000000000000000">
96+
<thead>
97+
<tr>
98+
<th colspan="2">enum OneEnum</th>
99+
</tr>
100+
</thead>
101+
</table>
96102
</div>
97103
</div>
98104
<div id="sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
@@ -212,7 +218,13 @@ TEST(HTMLGeneratorTest, emitRecordHTML) {
212218
</div>
213219
<h2 id="Enums">Enums</h2>
214220
<div>
215-
<h3 id="0000000000000000000000000000000000000000">enum OneEnum</h3>
221+
<table id="0000000000000000000000000000000000000000">
222+
<thead>
223+
<tr>
224+
<th colspan="2">enum OneEnum</th>
225+
</tr>
226+
</thead>
227+
</table>
216228
</div>
217229
</div>
218230
<div id="sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
@@ -346,10 +358,19 @@ TEST(HTMLGeneratorTest, emitEnumHTML) {
346358
<main>
347359
<div id="sidebar-left" path="" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left"></div>
348360
<div id="main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
349-
<h3 id="0000000000000000000000000000000000000000">enum class e</h3>
350-
<ul>
351-
<li>X</li>
352-
</ul>
361+
<table id="0000000000000000000000000000000000000000">
362+
<thead>
363+
<tr>
364+
<th colspan="2">enum class e</th>
365+
</tr>
366+
</thead>
367+
<tbody>
368+
<tr>
369+
<td>X</td>
370+
<td>0</td>
371+
</tr>
372+
</tbody>
373+
</table>
353374
<p>
354375
Defined at line
355376
<a href="https://www.repository.com/test.cpp#10">10</a>

0 commit comments

Comments
 (0)