about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-11-23 00:09:48 +0000
committerbors <bors@rust-lang.org>2021-11-23 00:09:48 +0000
commit8d0c79d26995a973c6f33c32ffb0c827d78bb213 (patch)
treea9ee27374b362f878b270d0f5737ecb96e66e2f2 /src/test
parent936f2600b6c903b04387f74ed5cbce88bb06d243 (diff)
parentc82f4f66e887fc83296f82e4713fba8f3253b497 (diff)
downloadrust-8d0c79d26995a973c6f33c32ffb0c827d78bb213.tar.gz
rust-8d0c79d26995a973c6f33c32ffb0c827d78bb213.zip
Auto merge of #91145 - matthiaskrgr:rollup-91g8z8i, r=matthiaskrgr
Rollup of 3 pull requests

Successful merges:

 - #91102 (Set color for <a> in a more straightforward way.)
 - #91143 (Update books)
 - #91144 (Update cargo)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'src/test')
-rw-r--r--src/test/rustdoc-gui/anchors.goml17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/anchors.goml b/src/test/rustdoc-gui/anchors.goml
new file mode 100644
index 00000000000..6953009604c
--- /dev/null
+++ b/src/test/rustdoc-gui/anchors.goml
@@ -0,0 +1,17 @@
+goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html
+
+// Set the theme to light.
+local-storage: {"rustdoc-theme": "light", "rustdoc-use-system-theme": "false"}
+// We reload the page so the local storage settings are being used.
+reload:
+
+assert-css: ("#toggle-all-docs", {"color": "rgba(0, 0, 0, 0)"})
+assert-css: (".fqn .in-band a:nth-of-type(1)", {"color": "rgba(0, 0, 0, 0)"})
+assert-css: (".fqn .in-band a:nth-of-type(2)", {"color": "rgba(0, 0, 0, 0)"})
+assert-css: (".srclink", {"color": "rgba(0, 0, 0, 0)"})
+assert-css: (".srclink", {"color": "rgba(0, 0, 0, 0)"})
+
+assert-css: ("#top-doc-prose-title", {"color": "rgba(0, 0, 0, 0)"})
+
+assert-css: (".sidebar a", {"color": "rgba(0, 0, 0, 0)"})
+assert-css: (".in-band a", {"color": "rgba(0, 0, 0, 0)"})