mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 18:04:13 +00:00
replace escape-rust-expr test with dont-show-const-contents
The old test was supposed to check for proper html escaping when showing the contents of constants. This was changed as part of #53409. The revised test asserts that the contents of the constant is not shown as part of the generated documentation.
This commit is contained in:
parent
e7b5ba8661
commit
7d3d835c58
@ -8,8 +8,8 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// Test that we HTML-escape Rust expressions, where HTML special chars
|
||||
// can occur, and we know it's definitely not markup.
|
||||
// Test that the contents of constants are not displayed as part of the
|
||||
// documentation.
|
||||
|
||||
// @!has escape_rust_expr/constant.CONST_S.html '//pre[@class="rust const"]' '"<script>"'
|
||||
pub const CONST_S: &'static str = "<script>";
|
||||
// @!has dont_show_const_contents/constant.CONST_S.html 'dont show this'
|
||||
pub const CONST_S: &'static str = "dont show this";
|
Loading…
Reference in New Issue
Block a user