diff options
| author | Michael Howell <michael@notriddle.com> | 2023-02-07 19:00:18 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-02-07 19:00:42 -0700 |
| commit | 894c98652c91a5ff824e81d847760c518857d0a2 (patch) | |
| tree | 7276f8deb767d89c9f01539512d3d822c1e90a51 /tests/rustdoc/short-docblock.rs | |
| parent | 3f059f60467419823e2a63d6d20f414829040f2f (diff) | |
| download | rust-894c98652c91a5ff824e81d847760c518857d0a2.tar.gz rust-894c98652c91a5ff824e81d847760c518857d0a2.zip | |
rustdoc: simplify DOM for `.item-table`
This switches from using `<div>` to the more semantic `<ul>`, and using class names that rhyme with the classes the search results table uses.
Diffstat (limited to 'tests/rustdoc/short-docblock.rs')
| -rw-r--r-- | tests/rustdoc/short-docblock.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/rustdoc/short-docblock.rs b/tests/rustdoc/short-docblock.rs index 1a8a689be1d..791d3547c9f 100644 --- a/tests/rustdoc/short-docblock.rs +++ b/tests/rustdoc/short-docblock.rs @@ -1,7 +1,7 @@ #![crate_name = "foo"] -// @has foo/index.html '//*[@class="item-right docblock-short"]' 'fooo' -// @!has foo/index.html '//*[@class="item-right docblock-short"]/h1' 'fooo' +// @has foo/index.html '//*[@class="desc docblock-short"]' 'fooo' +// @!has foo/index.html '//*[@class="desc docblock-short"]/h1' 'fooo' // @has foo/fn.foo.html '//h2[@id="fooo"]/a[@href="#fooo"]' 'fooo' /// # fooo @@ -9,8 +9,8 @@ /// foo pub fn foo() {} -// @has foo/index.html '//*[@class="item-right docblock-short"]' 'mooood' -// @!has foo/index.html '//*[@class="item-right docblock-short"]/h2' 'mooood' +// @has foo/index.html '//*[@class="desc docblock-short"]' 'mooood' +// @!has foo/index.html '//*[@class="desc docblock-short"]/h2' 'mooood' // @has foo/foo/index.html '//h3[@id="mooood"]/a[@href="#mooood"]' 'mooood' /// ## mooood @@ -18,7 +18,7 @@ pub fn foo() {} /// foo mod pub mod foo {} -// @has foo/index.html '//*[@class="item-right docblock-short"]/a[@href=\ +// @has foo/index.html '//*[@class="desc docblock-short"]/a[@href=\ // "https://nougat.world"]/code' 'nougat' /// [`nougat`](https://nougat.world) |
