Skip to content

Commit 80443cb

Browse files
Add test for --no-source option flag
1 parent adc02e4 commit 80443cb

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#![doc(html_no_source)]
2+
#![crate_name = "foo"]
3+
4+
// @!has src/foo/html_no_source_attr.rs.html
5+
// @has foo/index.html
6+
// @!has - '//*[@class="srclink"]' '[src]'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// compile-flags: --no-source
2+
3+
#![crate_name = "foo"]
4+
5+
// @!has src/foo/html_no_source_attr.rs.html
6+
// @has foo/index.html
7+
// @!has - '//*[@class="srclink"]' '[src]'

src/test/rustdoc/html_source.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![crate_name = "foo"]
2+
3+
// @has src/foo/html_source.rs.html
4+
// @has foo/index.html
5+
// @has - '//*[@class="srclink"]' '[src]'

0 commit comments

Comments
 (0)