Add test for whitespace in doc alias
This commit is contained in:
parent
a215151cd3
commit
accc26abc0
2 changed files with 23 additions and 0 deletions
19
src/test/rustdoc-js/doc-alias-whitespace.js
Normal file
19
src/test/rustdoc-js/doc-alias-whitespace.js
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
// exact-check
|
||||||
|
|
||||||
|
const QUERY = [
|
||||||
|
'Demon Lord',
|
||||||
|
];
|
||||||
|
|
||||||
|
const EXPECTED = [
|
||||||
|
{
|
||||||
|
'others': [
|
||||||
|
{
|
||||||
|
'path': 'doc_alias_whitespace',
|
||||||
|
'name': 'Struct',
|
||||||
|
'alias': 'Demon Lord',
|
||||||
|
'href': '../doc_alias_whitespace/struct.Struct.html',
|
||||||
|
'is_alias': true
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
4
src/test/rustdoc-js/doc-alias-whitespace.rs
Normal file
4
src/test/rustdoc-js/doc-alias-whitespace.rs
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#![feature(doc_alias)]
|
||||||
|
|
||||||
|
#[doc(alias = "Demon Lord")]
|
||||||
|
pub struct Struct;
|
Loading…
Add table
Add a link
Reference in a new issue