about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/toggle-docs.goml
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-12-05 11:15:09 -0700
committerMichael Howell <michael@notriddle.com>2022-12-05 13:01:29 -0700
commit32765fbe101f748ca33d190b0f37b79c23d61241 (patch)
tree3e51179be937c39d4dc6808bcb6617c1f60555e9 /src/test/rustdoc-gui/toggle-docs.goml
parent203c8765ea33c65d888febe0e8219c4bb11b0d89 (diff)
downloadrust-32765fbe101f748ca33d190b0f37b79c23d61241.tar.gz
rust-32765fbe101f748ca33d190b0f37b79c23d61241.zip
rustdoc: simplify CSS selectors on top-doc and non-exhaustive toggles
This code uses a special `hideme` class anyway, so just style that.
Diffstat (limited to 'src/test/rustdoc-gui/toggle-docs.goml')
-rw-r--r--src/test/rustdoc-gui/toggle-docs.goml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/toggle-docs.goml b/src/test/rustdoc-gui/toggle-docs.goml
index b7d10723767..45bb8daf1f2 100644
--- a/src/test/rustdoc-gui/toggle-docs.goml
+++ b/src/test/rustdoc-gui/toggle-docs.goml
@@ -7,6 +7,10 @@ wait-for: 50
 // This is now collapsed so there shouldn't be the "open" attribute on details.
 assert-attribute-false: ("#main-content > details.top-doc", {"open": ""})
 assert-text: ("#toggle-all-docs", "[+]")
+assert-css: (
+    "#main-content > details.top-doc > summary",
+    {"font-family": '"Fira Sans", Arial, NanumBarunGothic, sans-serif'},
+)
 click: "#toggle-all-docs"
 // Not collapsed anymore so the "open" attribute should be back.
 wait-for-attribute: ("#main-content > details.top-doc", {"open": ""})