Skip to content

Commit

Permalink
Update src/test/rustdoc-gui/sidebar-mobile-scroll.goml
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Howell <michael@notriddle.com>
  • Loading branch information
jsha and notriddle committed Sep 27, 2022
1 parent 8846c08 commit b5b77a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/rustdoc-gui/sidebar-mobile-scroll.goml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ assert-css: (".sidebar", {"display": "block", "left": "-1000px"})

// Scroll down.
scroll-to: "//h2[@id='blanket-implementations']"
assert-window-property: {"pageYOffset": "645"}
assert-window-property: {"pageYOffset": "639"}

// Open the sidebar menu.
click: ".sidebar-menu-toggle"
Expand All @@ -21,11 +21,11 @@ assert-window-property: {"pageYOffset": "0"}
// Close the sidebar menu. Make sure the scroll position gets restored.
click: ".sidebar-menu-toggle"
wait-for-css: (".sidebar", {"left": "-1000px"})
assert-window-property: {"pageYOffset": "645"}
assert-window-property: {"pageYOffset": "639"}

// Now test that scrollability returns when the browser window is just resized.
click: ".sidebar-menu-toggle"
wait-for-css: (".sidebar", {"left": "0px"})
assert-window-property: {"pageYOffset": "0"}
size: (900, 600)
assert-window-property: {"pageYOffset": "645"}
assert-window-property: {"pageYOffset": "639"}

0 comments on commit b5b77a2

Please sign in to comment.