about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-01-16 14:26:43 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-01-16 14:26:43 +0100
commit5022dd3b854792dd72d396e1586aa5b5c09975b2 (patch)
tree1733f4649421a1383e2a8ceef59420bb8fdc18a3 /src/test/rustdoc
parent0e6a941820dcb39f5abab156e423cf3e28970c9f (diff)
downloadrust-5022dd3b854792dd72d396e1586aa5b5c09975b2.tar.gz
rust-5022dd3b854792dd72d396e1586aa5b5c09975b2.zip
Extend url in titles test
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/remove-url-from-headings.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/rustdoc/remove-url-from-headings.rs b/src/test/rustdoc/remove-url-from-headings.rs
index 7fbcdbafa74..50e45a7f53a 100644
--- a/src/test/rustdoc/remove-url-from-headings.rs
+++ b/src/test/rustdoc/remove-url-from-headings.rs
@@ -3,10 +3,15 @@
 // @has foo/fn.foo.html
 // !@has - '//a[@href="http://a.a"]'
 // @has - '//a[@href="#implementing-stuff-somewhere"]' 'Implementing stuff somewhere'
+// @has - '//a[@href="#another-one-urg"]' 'Another one urg'
 
 /// fooo
 ///
 /// # Implementing [stuff](http://a.a) somewhere
 ///
 /// hello
+///
+/// # Another [one][two] urg
+///
+/// [two]: http://a.a
 pub fn foo() {}