2023-04-04 09:35:53 -05:00
|
|
|
// Checks that the scrollbar is visible on the page rather than the code block.
|
2023-04-11 12:11:34 -05:00
|
|
|
go-to: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html"
|
|
|
|
set-window-size: (800, 1000)
|
2023-04-04 09:35:53 -05:00
|
|
|
// "scrollWidth" should be superior than "clientWidth".
|
|
|
|
assert-property: ("body", {"scrollWidth": 1047, "clientWidth": 800})
|
|
|
|
|
|
|
|
// Both properties should be equal (ie, no scroll on the code block).
|
|
|
|
assert-property: (".example-wrap .rust", {"scrollWidth": 933, "clientWidth": 933})
|