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