diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-02-07 17:50:14 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-02-11 14:29:58 +0100 |
| commit | 673fd23dff47bf72953d1408b1cfbd45f6ef859b (patch) | |
| tree | 80ea0b0cf1251caceb2e5ce91939771be1846b3b /tests/rustdoc-gui/source-anchor-scroll.goml | |
| parent | 0395fc2242c2b04f3a0a330e2e1f6eeaf5939777 (diff) | |
| download | rust-673fd23dff47bf72953d1408b1cfbd45f6ef859b.tar.gz rust-673fd23dff47bf72953d1408b1cfbd45f6ef859b.zip | |
Update rustdoc tests
Diffstat (limited to 'tests/rustdoc-gui/source-anchor-scroll.goml')
| -rw-r--r-- | tests/rustdoc-gui/source-anchor-scroll.goml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rustdoc-gui/source-anchor-scroll.goml b/tests/rustdoc-gui/source-anchor-scroll.goml index 4ad65bbbd61..c005af1e7a1 100644 --- a/tests/rustdoc-gui/source-anchor-scroll.goml +++ b/tests/rustdoc-gui/source-anchor-scroll.goml @@ -8,13 +8,13 @@ set-window-size: (600, 800) assert-property: ("html", {"scrollTop": "0"}) click: '//a[text() = "barbar" and @href="#5-7"]' -assert-property: ("html", {"scrollTop": "208"}) +assert-property: ("html", {"scrollTop": "206"}) click: '//a[text() = "bar" and @href="#28-36"]' assert-property: ("html", {"scrollTop": "239"}) click: '//a[normalize-space() = "sub_fn" and @href="#2-4"]' -assert-property: ("html", {"scrollTop": "136"}) +assert-property: ("html", {"scrollTop": "134"}) // We now check that clicking on lines doesn't change the scroll // Extra information: the "sub_fn" function header is on line 1. click: '//*[@id="6"]' -assert-property: ("html", {"scrollTop": "136"}) +assert-property: ("html", {"scrollTop": "134"}) |
