about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-11 11:29:21 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-11 11:29:21 +0200
commitdd6bb09133f1f97db6a36024bf4e66489fc760c1 (patch)
tree7ff8a19870e59add5180dd95b9c5122cfd8406aa
parent92482cabaad0a0a63514bdcdcf6e4c8d8dee25e9 (diff)
downloadrust-dd6bb09133f1f97db6a36024bf4e66489fc760c1.tar.gz
rust-dd6bb09133f1f97db6a36024bf4e66489fc760c1.zip
Ensure that the settings CSS is loaded on the settings page
-rw-r--r--src/test/rustdoc-gui/settings.goml5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/settings.goml b/src/test/rustdoc-gui/settings.goml
index 6c4611b1cb2..18270264266 100644
--- a/src/test/rustdoc-gui/settings.goml
+++ b/src/test/rustdoc-gui/settings.goml
@@ -65,3 +65,8 @@ assert: ".setting-line.hidden #theme"
 // We check their text as well.
 assert-text: ("#preferred-dark-theme .setting-name", "Preferred dark theme")
 assert-text: ("#preferred-light-theme .setting-name", "Preferred light theme")
+
+// Now we go to the settings page to check that the CSS is loaded as expected.
+goto: file://|DOC_PATH|/settings.html
+wait-for: "#settings"
+assert-css: (".setting-line .toggle", {"width": "45px", "margin-right": "20px"})