diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-02-25 15:57:01 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-12-05 15:59:40 +0100 |
| commit | 13b2156c68aa8e6565923dfad336461a393b75fa (patch) | |
| tree | 13d6e92f3b6f686a9a770e4f7033b4c7eafd2815 /tests/rustdoc/remove-url-from-headings.rs | |
| parent | d1dd589a1df3d0e2b392a1bd4034efa43326a4c9 (diff) | |
| download | rust-13b2156c68aa8e6565923dfad336461a393b75fa.tar.gz rust-13b2156c68aa8e6565923dfad336461a393b75fa.zip | |
Update rustdoc headings tests
Diffstat (limited to 'tests/rustdoc/remove-url-from-headings.rs')
| -rw-r--r-- | tests/rustdoc/remove-url-from-headings.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/rustdoc/remove-url-from-headings.rs b/tests/rustdoc/remove-url-from-headings.rs index 599c429a6e1..8f477028619 100644 --- a/tests/rustdoc/remove-url-from-headings.rs +++ b/tests/rustdoc/remove-url-from-headings.rs @@ -1,9 +1,12 @@ +// It actually checks that the link is kept in the headings as expected now. + #![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' +// @has - '//a[@href="http://a.a"]' 'stuff' +// @has - '//*[@id="implementing-stuff-somewhere"]' 'Implementing stuff somewhere' +// @has - '//a[@href="http://b.b"]' 'one' +// @has - '//*[@id="another-one-urg"]' 'Another one urg' /// fooo /// @@ -13,5 +16,5 @@ /// /// # Another [one][two] urg /// -/// [two]: http://a.a +/// [two]: http://b.b pub fn foo() {} |
