Skip to content

Commit 30f56df

Browse files
Add regression test for #139282
1 parent 39c6b6c commit 30f56df

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: tests/rustdoc-gui/settings.goml

+14
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,13 @@ compare-elements-position: (".sub form", "#settings", ["x"])
314314
// Check that setting-line has the same margin in this mode as in the popover.
315315
assert-css: (".setting-line", {"margin": |setting_line_margin|})
316316

317+
// We will check that the checkboxes size doesn't change either.
318+
assert-size: (
319+
"#settings label > input[type='checkbox']",
320+
{"width": 19, "height": 19},
321+
ALL,
322+
)
323+
317324
// We now check the display with JS disabled.
318325
assert-false: "noscript section"
319326
javascript: false
@@ -327,3 +334,10 @@ reload:
327334
set-window-size: (300, 1000)
328335
wait-for: "#settings"
329336
assert-css: (".setting-radio", {"cursor": "pointer"})
337+
338+
// We ensure that the checkboxes size didn't change.
339+
assert-size: (
340+
"#settings label > input[type='checkbox']",
341+
{"width": 19, "height": 19},
342+
ALL,
343+
)

0 commit comments

Comments
 (0)