diff options
| author | Michael Howell <michael@notriddle.com> | 2022-12-23 22:55:04 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-12-23 22:55:04 -0700 |
| commit | f4517171572fdc2d6d2880fc20bb2b689faae3c3 (patch) | |
| tree | bbe66f3822876c389a792c70ea17547705c29c89 /src/test/rustdoc-gui/source-code-page.goml | |
| parent | 6c0c6d6eb3b38931f9dd4f5466185591e91d51c9 (diff) | |
| download | rust-f4517171572fdc2d6d2880fc20bb2b689faae3c3.tar.gz rust-f4517171572fdc2d6d2880fc20bb2b689faae3c3.zip | |
rustdoc: make line number CSS for doc comment and scraped the same
Discussed in https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/Line.20number.20styling
Diffstat (limited to 'src/test/rustdoc-gui/source-code-page.goml')
| -rw-r--r-- | src/test/rustdoc-gui/source-code-page.goml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rustdoc-gui/source-code-page.goml b/src/test/rustdoc-gui/source-code-page.goml index 25da74e5173..8a33e713191 100644 --- a/src/test/rustdoc-gui/source-code-page.goml +++ b/src/test/rustdoc-gui/source-code-page.goml @@ -89,9 +89,9 @@ assert-css: (".src-line-numbers", {"text-align": "right"}) // do anything (and certainly not add a `#NaN` to the URL!). goto: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html" // We use this assert-position to know where we will click. -assert-position: ("//*[@id='1']", {"x": 104, "y": 112}) +assert-position: ("//*[@id='1']", {"x": 88, "y": 112}) // We click on the left of the "1" anchor but still in the "src-line-number" `<pre>`. -click: (103, 103) +click: (87, 103) assert-document-property: ({"URL": "/lib.rs.html"}, ENDS_WITH) // Checking the source code sidebar. |
