Skip to content

Commit 297fed1

Browse files
committed
added tests that don't use flags from the rfc
1 parent c112ed4 commit 297fed1

File tree

27 files changed

+282
-0
lines changed

27 files changed

+282
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//@ build-aux-docs
2+
3+
4+
pub struct Quebec;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//@ aux-build:q.rs
2+
//@ build-aux-docs
3+
4+
5+
extern crate q;
6+
pub trait Tango {}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//@ aux-build:t.rs
2+
//@ build-aux-docs
3+
4+
//@ has t/trait.Tango.html
5+
//@ hasraw search-index.js 'Quebec'
6+
//@ hasraw trait.impl/t/trait.Tango.js 'struct.Sierra.html'
7+
//@ hasraw s/struct.Sierra.html 'Tango'
8+
//@ hasraw search-index.js 'Sierra'
9+
//@ hasraw search-index.js 'Tango'
10+
//@ has q/struct.Quebec.html
11+
//@ has s/struct.Sierra.html
12+
13+
// We document multiple crates into the same output directory, which merges the cross-crate information. Everything is available.
14+
15+
extern crate t;
16+
pub struct Sierra;
17+
impl t::Tango for Sierra {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//@ build-aux-docs
2+
//@ doc-flags:--enable-index-page
3+
//@ doc-flags:-Zunstable-options
4+
5+
6+
pub struct Quebec;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//@ aux-build:q.rs
2+
//@ build-aux-docs
3+
//@ doc-flags:--enable-index-page
4+
//@ doc-flags:-Zunstable-options
5+
6+
7+
extern crate q;
8+
pub trait Tango {}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//@ aux-build:t.rs
2+
//@ build-aux-docs
3+
//@ doc-flags:--enable-index-page
4+
//@ doc-flags:-Zunstable-options
5+
6+
//@ has t/trait.Tango.html
7+
//@ hasraw search-index.js 'Quebec'
8+
//@ has index.html '//ul[@class="all-items"]//a[@href="q/index.html"]' 'q'
9+
//@ hasraw s/struct.Sierra.html 'Tango'
10+
//@ hasraw trait.impl/t/trait.Tango.js 'struct.Sierra.html'
11+
//@ has index.html '//ul[@class="all-items"]//a[@href="t/index.html"]' 't'
12+
//@ has index.html '//h1' 'List of all crates'
13+
//@ has index.html '//ul[@class="all-items"]//a[@href="s/index.html"]' 's'
14+
//@ hasraw search-index.js 'Sierra'
15+
//@ hasraw search-index.js 'Tango'
16+
//@ has index.html
17+
//@ has q/struct.Quebec.html
18+
//@ has s/struct.Sierra.html
19+
20+
// We document multiple crates into the same output directory, which merges the cross-crate information. Everything is available.
21+
22+
extern crate t;
23+
pub struct Sierra;
24+
impl t::Tango for Sierra {}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//@ build-aux-docs
2+
3+
4+
pub trait Foxtrot {}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//@ aux-build:f.rs
2+
//@ build-aux-docs
3+
4+
//@ hasraw search-index.js 'Echo'
5+
//@ hasraw search-index.js 'Foxtrot'
6+
//@ hasraw trait.impl/f/trait.Foxtrot.js 'enum.Echo.html'
7+
//@ has f/trait.Foxtrot.html
8+
//@ has e/enum.Echo.html
9+
//@ hasraw e/enum.Echo.html 'Foxtrot'
10+
11+
// document two crates in the same way that cargo does. do not provide --enable-index-page
12+
13+
extern crate f;
14+
pub enum Echo {}
15+
impl f::Foxtrot for Echo {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//@ build-aux-docs
2+
//@ doc-flags:--enable-index-page
3+
//@ doc-flags:-Zunstable-options
4+
5+
6+
pub trait Foxtrot {}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//@ aux-build:f.rs
2+
//@ build-aux-docs
3+
//@ doc-flags:--enable-index-page
4+
//@ doc-flags:-Zunstable-options
5+
6+
//@ hasraw search-index.js 'Echo'
7+
//@ hasraw search-index.js 'Foxtrot'
8+
//@ has index.html '//ul[@class="all-items"]//a[@href="e/index.html"]' 'e'
9+
//@ has index.html '//ul[@class="all-items"]//a[@href="f/index.html"]' 'f'
10+
//@ hasraw trait.impl/f/trait.Foxtrot.js 'enum.Echo.html'
11+
//@ has f/trait.Foxtrot.html
12+
//@ has index.html '//h1' 'List of all crates'
13+
//@ has e/enum.Echo.html
14+
//@ has index.html
15+
//@ hasraw e/enum.Echo.html 'Foxtrot'
16+
17+
// document two crates in the same way that cargo does, writing them both into the same output directory
18+
19+
extern crate f;
20+
pub enum Echo {}
21+
impl f::Foxtrot for Echo {}

0 commit comments

Comments
 (0)