diff options
Diffstat (limited to 'tests/rustdoc/remove-url-from-headings.rs')
-rw-r--r-- | tests/rustdoc/remove-url-from-headings.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/rustdoc/remove-url-from-headings.rs b/tests/rustdoc/remove-url-from-headings.rs new file mode 100644 index 000000000..599c429a6 --- /dev/null +++ b/tests/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() {} |