diff options
| author | Michael Howell <michael@notriddle.com> | 2023-01-17 12:09:38 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-01-17 12:09:53 -0700 |
| commit | a242a2c6ade769b4986dff36c8d62cb22db59f75 (patch) | |
| tree | bd7db9de19ace90299e58f84b6fc892a4e8ddd3f /tests | |
| parent | 54089e6390e4dd179f35438bd46099fb09854427 (diff) | |
| download | rust-a242a2c6ade769b4986dff36c8d62cb22db59f75.tar.gz rust-a242a2c6ade769b4986dff36c8d62cb22db59f75.zip | |
rustdoc: add test cases for settings radio button layout
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/rustdoc-gui/settings.goml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/settings.goml b/tests/rustdoc-gui/settings.goml index f236dc3e0fe..72de41e41ba 100644 --- a/tests/rustdoc-gui/settings.goml +++ b/tests/rustdoc-gui/settings.goml @@ -105,6 +105,33 @@ assert-css: ( "box-shadow": "rgb(33, 150, 243) 0px 0px 1px 1px", }, ) +// Now we check the setting-name for radio buttons is on a different line than the label. +compare-elements-position-near: ( + "#theme .setting-name", + "#theme .choices", + {"x": 1} +) +compare-elements-position-near-false: ( + "#theme .setting-name", + "#theme .choices", + {"y": 1} +) +// Now we check that the label positions are all on the same line. +compare-elements-position-near: ( + "#theme .choices #theme-light", + "#theme .choices #theme-dark", + {"y": 1} +) +compare-elements-position-near: ( + "#theme .choices #theme-dark", + "#theme .choices #theme-ayu", + {"y": 1} +) +compare-elements-position-near: ( + "#theme .choices #theme-ayu", + "#theme .choices #theme-system-preference", + {"y": 1} +) // First we check the "default" display for toggles. assert-css: ( |
