From f4517171572fdc2d6d2880fc20bb2b689faae3c3 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Fri, 23 Dec 2022 22:55:04 -0700 Subject: 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 --- src/test/rustdoc-gui/source-code-page.goml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/rustdoc-gui/source-code-page.goml') 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" `
`.
-click: (103, 103)
+click: (87, 103)
 assert-document-property: ({"URL": "/lib.rs.html"}, ENDS_WITH)
 
 // Checking the source code sidebar.
-- 
cgit 1.4.1-3-g733a5