rust/src/test/rustdoc/static-root-path.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
629 B
Rust
Raw Normal View History

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