diff options
| author | bors <bors@rust-lang.org> | 2021-12-05 18:35:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-12-05 18:35:43 +0000 |
| commit | e2116acae59654bfab2a9729a024f3e2fd6d4b02 (patch) | |
| tree | acf2e464a8cda6c81c8bee7b12489ac8991210ba /src/test/rustdoc-gui/source-code-page.goml | |
| parent | 772d51f887fa407216860bf8ecf3f1a32fb795b4 (diff) | |
| parent | d7528e2157762fadb9665518fd1e4dee6d6a2809 (diff) | |
| download | rust-e2116acae59654bfab2a9729a024f3e2fd6d4b02.tar.gz rust-e2116acae59654bfab2a9729a024f3e2fd6d4b02.zip | |
Auto merge of #91356 - GuillaumeGomez:improve-rustdoc-layout, r=jsha
Improve rustdoc layout This is an overtake of https://github.com/rust-lang/rust/pull/89385 originally written by `@cynecx.` I kept the original commit and simply added the missing fixes into a new one. You can test it online [here](https://rustdoc.crud.net/imperio/improve-rustdoc-layout/std/index.html). r? `@jsha`
Diffstat (limited to 'src/test/rustdoc-gui/source-code-page.goml')
| -rw-r--r-- | src/test/rustdoc-gui/source-code-page.goml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/rustdoc-gui/source-code-page.goml b/src/test/rustdoc-gui/source-code-page.goml index 5a49807e180..f3682f59d21 100644 --- a/src/test/rustdoc-gui/source-code-page.goml +++ b/src/test/rustdoc-gui/source-code-page.goml @@ -1,6 +1,6 @@ goto: file://|DOC_PATH|/src/test_docs/lib.rs.html // Check that we can click on the line number. -click: (40, 224) // This is the position of the span for line 4. +click: ".line-numbers > span:nth-child(4)" // This is the span for line 4. // Unfortunately, "#4" isn't a valid query selector, so we have to go around that limitation // by instead getting the nth span. assert-attribute: (".line-numbers > span:nth-child(4)", {"class": "line-highlighted"}) |
