We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72f6322 commit 9a1f52dCopy full SHA for 9a1f52d
src/test/rustdoc-gui/sidebar-source-code-display.goml
@@ -138,3 +138,17 @@ assert-css: (
138
"border-bottom-width": "1px",
139
},
140
)
141
+
142
+// We now check that the scroll position is kept when opening the sidebar.
143
+click: "#sidebar-toggle"
144
+wait-for-css: (".sidebar", {"width": "0px"})
145
+// We scroll to line 117 to change the scroll position.
146
+scroll-to: '//*[@id="117"]'
147
+assert-window-property: {"pageYOffset": "2519"}
148
+// Expanding the sidebar...
149
150
+wait-for-css: (".sidebar", {"width": "500px"})
151
152
153
+// The "scrollTop" property should be the same.
154
0 commit comments