Skip to content

Commit f0cf5a9

Browse files
committed
Add more rustdoc-js test cases
1 parent b903519 commit f0cf5a9

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

src/test/rustdoc-js/summaries.js

+20-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1-
const QUERY = 'summaries';
1+
// ignore-tidy-linelength
22

3-
const EXPECTED = {
4-
'others': [
5-
{ 'path': '', 'name': 'summaries', 'desc': 'This <em>summary</em> has a link and <code>code</code>.' },
6-
],
7-
};
3+
const QUERY = ['summaries', 'summaries::Sidebar', 'summaries::Sidebar2'];
4+
5+
const EXPECTED = [
6+
{
7+
'others': [
8+
{ 'path': '', 'name': 'summaries', 'desc': 'This <em>summary</em> has a link and <code>code</code>.' },
9+
],
10+
},
11+
{
12+
'others': [
13+
{ 'path': 'summaries', 'name': 'Sidebar', 'desc': 'This <code>code</code> will be rendered in a code tag.' },
14+
],
15+
},
16+
{
17+
'others': [
18+
{ 'path': 'summaries', 'name': 'Sidebar2', 'desc': '' },
19+
],
20+
},
21+
];

0 commit comments

Comments
 (0)