diff options
| author | Michael Howell <michael@notriddle.com> | 2023-01-18 12:48:24 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-01-18 12:48:24 -0700 |
| commit | 34d595dda16cbcc7a14aea17db8c5328867ed94d (patch) | |
| tree | 8a50b3521813f932b9118272004c78944f59d5eb | |
| parent | 9ee4df0e9cbe474a0f357ed00dd479a2dae65e23 (diff) | |
| download | rust-34d595dda16cbcc7a14aea17db8c5328867ed94d.tar.gz rust-34d595dda16cbcc7a14aea17db8c5328867ed94d.zip | |
rustdoc: add test case for setting-line margin on settings.html
| -rw-r--r-- | tests/rustdoc-gui/settings.goml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/settings.goml b/tests/rustdoc-gui/settings.goml index 72de41e41ba..951ff4e30d2 100644 --- a/tests/rustdoc-gui/settings.goml +++ b/tests/rustdoc-gui/settings.goml @@ -8,6 +8,10 @@ assert-false: "#settings" click: "#settings-menu" wait-for: "#settings" assert-css: ("#settings", {"display": "block"}) + +// Store the line margin to compare with the settings.html later. +store-css: (setting_line_margin, ".setting-line", "margin") + // Let's close it by clicking on the same button. click: "#settings-menu" wait-for-css: ("#settings", {"display": "none"}) @@ -211,6 +215,9 @@ assert-css: (".setting-line", {"position": "relative"}) assert-attribute-false: ("#settings", {"class": "popover"}, CONTAINS) 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 now check the display with JS disabled. assert-false: "noscript section" javascript: false |
