File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ // Checks that there is no x-axis scrollbar.
2+
3+ go-to: |DOC_PATH|
4+
5+ define-function: (
6+ "test-scrollbar",
7+ [window_width],
8+ block {
9+ set-window-size: (|window_width|, 1000)
10+ store-document-property: {"body"."scrollWidth": scroll_width}
11+ // If the scroll width is the same as the viewport width, then all good!
12+ assert-document-property: {"documentElement"."clientWidth": |scroll_width|}
13+ },
14+ )
15+
16+ call-function: ("test-scrollbar", {"window_width": 1200})
17+ call-function: ("test-scrollbar", {"window_width": 1000})
18+ call-function: ("test-scrollbar", {"window_width": 800})
19+ call-function: ("test-scrollbar", {"window_width": 600})
20+ call-function: ("test-scrollbar", {"window_width": 400})
You can’t perform that action at this time.
0 commit comments