diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-27 00:04:23 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-27 00:04:23 +0200 |
| commit | 315be7d483bd4bad3e5541376ebf1d926c21f4f2 (patch) | |
| tree | 99e8027c37467845082072610e26b9609ad45aba /tests/rustdoc-gui/sidebar-source-code-display.goml | |
| parent | 2c243d957008f5909f7a4af19e486ea8a3814be7 (diff) | |
| download | rust-315be7d483bd4bad3e5541376ebf1d926c21f4f2.tar.gz rust-315be7d483bd4bad3e5541376ebf1d926c21f4f2.zip | |
Update browser-ui-test version to `0.18.0`
Diffstat (limited to 'tests/rustdoc-gui/sidebar-source-code-display.goml')
| -rw-r--r-- | tests/rustdoc-gui/sidebar-source-code-display.goml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/rustdoc-gui/sidebar-source-code-display.goml b/tests/rustdoc-gui/sidebar-source-code-display.goml index 7ce3be8a5b3..67152afbbaa 100644 --- a/tests/rustdoc-gui/sidebar-source-code-display.goml +++ b/tests/rustdoc-gui/sidebar-source-code-display.goml @@ -141,14 +141,15 @@ click: "#sidebar-button" wait-for-css: (".src .sidebar > *", {"visibility": "hidden"}) // We scroll to line 117 to change the scroll position. scroll-to: '//*[@id="117"]' -assert-window-property: {"pageYOffset": "2516"} +store-value: (y_offset, "2493") +assert-window-property: {"pageYOffset": |y_offset|} // Expanding the sidebar... click: "#sidebar-button" wait-for-css: (".sidebar", {"left": "0px"}) click: "#sidebar-button" wait-for-css: (".sidebar", {"left": "-1000px"}) // The "scrollTop" property should be the same. -assert-window-property: {"pageYOffset": "2516"} +assert-window-property: {"pageYOffset": |y_offset|} // We now check that opening the sidebar and clicking a link will close it. // The behavior here on mobile is different than the behavior on desktop, |
