rust/tests/rustdoc/static-root-path.rs

19 lines
604 B
Rust
Raw Normal View History

//@ compile-flags:-Z unstable-options --static-root-path /cache/
//@ has static_root_path/struct.SomeStruct.html
//@ matchesraw - '"/cache/main-'
//@ !matchesraw - '"\.\./main'
//@ matchesraw - 'data-root-path="\.\./"'
//@ !matchesraw - '"/cache/search-index\.js"'
pub struct SomeStruct;
//@ has src/static_root_path/static-root-path.rs.html
//@ matchesraw - '"/cache/src-script-'
//@ !matchesraw - '"\.\./\.\./src-script'
//@ matchesraw - '"\.\./\.\./src-files.js"'
//@ !matchesraw - '"/cache/src-files\.js"'
2019-04-15 11:20:08 -05:00
//@ has settings.html
//@ matchesraw - '/cache/settings-'
//@ !matchesraw - '\../settings'