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".
|
2024-07-21 05:47:34 -05:00
|
|
|
assert-property: ("body", {"scrollWidth": 1114, "clientWidth": 800})
|
2023-04-04 09:35:53 -05:00
|
|
|
|
|
|
|
// Both properties should be equal (ie, no scroll on the code block).
|
2024-07-21 05:47:34 -05:00
|
|
|
assert-property: (".example-wrap .rust", {"scrollWidth": 1000, "clientWidth": 1000})
|