File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ set-window-size: (1280, 1024)
7
7
assert-property: (".sidebar-crate .logo-container", {"offsetWidth": "96", "offsetHeight": 48})
8
8
// offsetWidth = width of sidebar, offsetHeight = height + top padding
9
9
assert-property: (".sidebar-crate .logo-container img", {"offsetWidth": "48", "offsetHeight": 64})
10
+ assert-css: (".sidebar-crate .logo-container img", {"border-top-width": "16px", "margin-top": "-16px"})
10
11
11
12
set-window-size: (400, 600)
12
13
// offset = size + margin
Original file line number Diff line number Diff line change @@ -179,3 +179,8 @@ assert-property: (".sidebar .sidebar-crate h2 a", {
179
179
"offsetTop": |index_sidebar_y|,
180
180
"offsetLeft": |index_sidebar_x|,
181
181
})
182
+
183
+ // Check that the sidebar links touch the left side of the box
184
+ go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
185
+ assert-position: (".sidebar .block a", {"x": -4})
186
+ assert-position: (".sidebar-crate > h2 > a", {"x": -3})
You can’t perform that action at this time.
0 commit comments