about summary refs log tree commit diff
path: root/tests/rustdoc-gui
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-04-10 14:24:19 +0200
committerRalf Jung <post@ralfj.de>2025-04-10 14:24:19 +0200
commitf69ea4d82fdbf0fefc36118071bb69ec6253a285 (patch)
tree351b40fa66750fb4eac0449318a360cf1167efd3 /tests/rustdoc-gui
parent830c58be89e4717ca2c1e08f17d1e027707334e9 (diff)
parent7d7de5bf3c3cbf9c2c5bbc5cbfb9197a8a427d35 (diff)
downloadrust-f69ea4d82fdbf0fefc36118071bb69ec6253a285.tar.gz
rust-f69ea4d82fdbf0fefc36118071bb69ec6253a285.zip
Merge from rustc
Diffstat (limited to 'tests/rustdoc-gui')
-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,
+)