From 7d3d835c58e789127744076c97110664ea9c6087 Mon Sep 17 00:00:00 2001 From: Philip Munksgaard Date: Thu, 4 Oct 2018 22:17:01 +0200 Subject: [PATCH] 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. --- .../{escape-rust-expr.rs => dont-show-const-contents.rs} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename src/test/rustdoc/{escape-rust-expr.rs => dont-show-const-contents.rs} (64%) diff --git a/src/test/rustdoc/escape-rust-expr.rs b/src/test/rustdoc/dont-show-const-contents.rs similarity index 64% rename from src/test/rustdoc/escape-rust-expr.rs rename to src/test/rustdoc/dont-show-const-contents.rs index 4594eb95ea18e..1392c62b4abb1 100644 --- a/src/test/rustdoc/escape-rust-expr.rs +++ b/src/test/rustdoc/dont-show-const-contents.rs @@ -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"]' '"