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:
Philip Munksgaard 2018-10-04 22:17:01 +02:00
parent e7b5ba8661
commit 7d3d835c58

View File

@ -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";