Skip to content

Commit 2b55576

Browse files
Add test for local resources
1 parent b61b60d commit 2b55576

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/rustdoc/local-resources.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Test ensuring that local resources copy is working as expected.
2+
// Original issue: <https://github.com/rust-lang/rust/issues/32104>
3+
4+
#![crate_name = "foo"]
5+
#![feature(no_core)]
6+
#![no_std]
7+
#![no_core]
8+
9+
// @has local_resources/0.svg
10+
// @has foo/struct.Enum.html
11+
// @has - '//img[@src="../local_resources/0.svg"]' ''
12+
/// test!
13+
///
14+
/// ![yep](../../src/librustdoc/html/static/images/rust-logo.svg)
15+
pub struct Enum;

0 commit comments

Comments
 (0)