@@ -117,9 +117,8 @@ assert-property: ("#source-sidebar details:first-of-type", {"open": "true"})
117
117
118
118
// Check the sidebar directory entries have a marker and spacing (desktop).
119
119
store-property: (
120
- link_height,
121
120
"#source-sidebar > details:first-of-type.dir-entry[open] > .files > a",
122
- "offsetHeight"
121
+ { "offsetHeight": link_height},
123
122
)
124
123
define-function: (
125
124
"check-sidebar-dir-entry",
@@ -147,16 +146,10 @@ define-function: (
147
146
)
148
147
}
149
148
)
150
- store-property: (
151
- source_sidebar_title_height,
152
- "#source-sidebar > .title",
153
- "offsetHeight"
154
- )
155
- store-property: (
156
- source_sidebar_title_y,
157
- "#source-sidebar > .title",
158
- "offsetTop"
159
- )
149
+ store-property: ("#source-sidebar > .title", {
150
+ "offsetHeight": source_sidebar_title_height,
151
+ "offsetTop": source_sidebar_title_y,
152
+ })
160
153
call-function: ("check-sidebar-dir-entry", {
161
154
"x": 0,
162
155
// border + margin = 6
@@ -182,16 +175,10 @@ assert-property: ("#main-content", {"offsetTop": 76})
182
175
// 21 = 76 - 34 - 21
183
176
184
177
// Check the sidebar directory entries have a marker and spacing (tablet).
185
- store-property: (
186
- source_sidebar_title_height,
187
- "#source-sidebar > .title",
188
- "offsetHeight"
189
- )
190
- store-property: (
191
- source_sidebar_title_y,
192
- "#source-sidebar > .title",
193
- "offsetTop"
194
- )
178
+ store-property: ("#source-sidebar > .title", {
179
+ "offsetHeight": source_sidebar_title_height,
180
+ "offsetTop": source_sidebar_title_y,
181
+ })
195
182
call-function: ("check-sidebar-dir-entry", {
196
183
"x": 0,
197
184
"y": |source_sidebar_title_y| + |source_sidebar_title_height| + 6,
@@ -202,22 +189,16 @@ set-window-size: (450, 700)
202
189
assert-css: ("nav.sub", {"flex-direction": "column"})
203
190
204
191
// Check the sidebar directory entries have a marker and spacing (phone).
205
- store-property: (
206
- source_sidebar_title_height,
207
- "#source-sidebar > .title",
208
- "offsetHeight"
209
- )
210
- store-property: (
211
- source_sidebar_title_y,
212
- "#source-sidebar > .title",
213
- "offsetTop"
214
- )
192
+ store-property: ("#source-sidebar > .title", {
193
+ "offsetHeight": source_sidebar_title_height,
194
+ "offsetTop": source_sidebar_title_y,
195
+ })
215
196
call-function: ("check-sidebar-dir-entry", {
216
197
"x": 0,
217
198
"y": |source_sidebar_title_y| + |source_sidebar_title_height| + 6,
218
199
})
219
200
220
201
// Now we check that the logo has a bottom margin so it's not stuck to the search input.
221
202
assert-css: (".sub-logo-container > img", {"margin-bottom": "8px"})
222
- store-property: (logo_height, ".sub-logo-container", "clientHeight")
203
+ store-property: (".sub-logo-container", { "clientHeight": logo_height} )
223
204
assert-position: (".search-form", {"y": |logo_height| + 8})
0 commit comments