about summary refs log tree commit diff
path: root/src/test/rustdoc-gui
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2022-11-18 17:48:19 -0500
committerGitHub <noreply@github.com>2022-11-18 17:48:19 -0500
commit9db23f8d30e8d00e2e5e18b51f7bb8e582520600 (patch)
tree39cfe78848e60f981dd45db69bfff7987a3602a7 /src/test/rustdoc-gui
parenta065e97bdc599406f4cea8dad90cc5f215a4e61a (diff)
parent616f34e3c3068b0d39c969cb91695d3ea6e3a71c (diff)
Rollup merge of #104556 - notriddle:notriddle/variant, r=GuillaumeGomez
rustdoc: use `code-header` class to format enum variants

The font size and weights should be exactly the same after this PR, but the spacing is changed to be the same as methods.

Preview: http://notriddle.com/notriddle-rustdoc-demos/variant/test_dingus_enum/enum.TestEnum.html
Diffstat (limited to 'src/test/rustdoc-gui')
-rw-r--r--src/test/rustdoc-gui/enum-variants.goml5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/enum-variants.goml b/src/test/rustdoc-gui/enum-variants.goml
new file mode 100644
index 00000000000..230abb236bd
--- /dev/null
+++ b/src/test/rustdoc-gui/enum-variants.goml
@@ -0,0 +1,5 @@
+// Verifies that there is non-zero margin on variants and their docblocks.
+goto: "file://" + |DOC_PATH| + "/test_docs/enum.WhoLetTheDogOut.html"
+
+assert-css: (".variants > .variant", {"margin": "0px 0px 12px"})
+assert-css: (".variants > .docblock", {"margin": "0px 0px 32px 24px"})