summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/remove-url-from-headings.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc/remove-url-from-headings.rs')
-rw-r--r--src/test/rustdoc/remove-url-from-headings.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/rustdoc/remove-url-from-headings.rs b/src/test/rustdoc/remove-url-from-headings.rs
new file mode 100644
index 000000000..e2b232a6e
--- /dev/null
+++ b/src/test/rustdoc/remove-url-from-headings.rs
@@ -0,0 +1,17 @@
+#![crate_name = "foo"]
+
+// @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 "title") somewhere
+///
+/// hello
+///
+/// # Another [one][two] urg
+///
+/// [two]: http://a.a
+pub fn foo() {}