about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-04-07 17:28:28 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-04-07 17:28:46 +0200
commit30f56df6f9fe396758213b5d9339e774339f5455 (patch)
treea114c2464925ba8560610d32e5d8abdce2e318c7
parent39c6b6c7d2834ee79cc518c42995b54d835544f8 (diff)
downloadrust-30f56df6f9fe396758213b5d9339e774339f5455.tar.gz
rust-30f56df6f9fe396758213b5d9339e774339f5455.zip
Add regression test for #139282
-rw-r--r--tests/rustdoc-gui/settings.goml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/settings.goml b/tests/rustdoc-gui/settings.goml
index 4ab5b83d7c4..11d3696ccf6 100644
--- a/tests/rustdoc-gui/settings.goml
+++ b/tests/rustdoc-gui/settings.goml
@@ -314,6 +314,13 @@ compare-elements-position: (".sub form", "#settings", ["x"])
 // Check that setting-line has the same margin in this mode as in the popover.
 assert-css: (".setting-line", {"margin": |setting_line_margin|})
 
+// We will check that the checkboxes size doesn't change either.
+assert-size: (
+    "#settings label > input[type='checkbox']",
+    {"width": 19, "height": 19},
+    ALL,
+)
+
 // We now check the display with JS disabled.
 assert-false: "noscript section"
 javascript: false
@@ -327,3 +334,10 @@ reload:
 set-window-size: (300, 1000)
 wait-for: "#settings"
 assert-css: (".setting-radio", {"cursor": "pointer"})
+
+// We ensure that the checkboxes size didn't change.
+assert-size: (
+    "#settings label > input[type='checkbox']",
+    {"width": 19, "height": 19},
+    ALL,
+)