Skip to content

Commit 8aef0c7

Browse files
Add GUI test for scrollbar position on source code page
1 parent 6f9b988 commit 8aef0c7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)