Skip to content

Commit

Permalink
replace escape-rust-expr test with dont-show-const-contents
Browse files Browse the repository at this point in the history
The old test was supposed to check for proper html escaping when showing the
contents of constants. This was changed as part of rust-lang#53409. The revised test
asserts that the contents of the constant is not shown as part of the generated
documentation.
  • Loading branch information
Munksgaard committed Oct 4, 2018
1 parent e7b5ba8 commit 7d3d835
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";

0 comments on commit 7d3d835

Please sign in to comment.