We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f9b988 commit 8aef0c7Copy full SHA for 8aef0c7
tests/rustdoc-gui/source-code-page-code-scroll.goml
@@ -0,0 +1,8 @@
1
+// Checks that the scrollbar is visible on the page rather than the code block.
2
+goto: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html"
3
+size: (800, 1000)
4
+// "scrollWidth" should be superior than "clientWidth".
5
+assert-property: ("body", {"scrollWidth": 1047, "clientWidth": 800})
6
+
7
+// Both properties should be equal (ie, no scroll on the code block).
8
+assert-property: (".example-wrap .rust", {"scrollWidth": 933, "clientWidth": 933})
0 commit comments