about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/impl-doc.goml
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-14 12:46:08 +0000
committerbors <bors@rust-lang.org>2022-12-14 12:46:08 +0000
commitba64ba8b0dfd57f7d6d7399d0df7ded37d2af18d (patch)
tree37f9ba9fabdcb14e3983023722e8dfc16098eac6 /src/test/rustdoc-gui/impl-doc.goml
parent7bdda8f801818c1e9455725a964a3fa4f02c2bb8 (diff)
parentb6d140e2509092dc0a9877a4014d6dbe7956eabe (diff)
downloadrust-ba64ba8b0dfd57f7d6d7399d0df7ded37d2af18d.tar.gz
rust-ba64ba8b0dfd57f7d6d7399d0df7ded37d2af18d.zip
Auto merge of #105690 - matthiaskrgr:rollup-khtq97k, r=matthiaskrgr
Rollup of 6 pull requests

Successful merges:

 - #105642 (Minor grammar nit.)
 - #105658 (Remove ..X from RELEASES.md)
 - #105663 (Adjust log line in `fuchsia-test-runner.py`)
 - #105664 (rustdoc: apply `pre-wrap` CSS to code-wrapped links)
 - #105665 (rustdoc: simplify popover CSS)
 - #105676 (rustdoc: add CSS margin between `impl` docblock and its items)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'src/test/rustdoc-gui/impl-doc.goml')
-rw-r--r--src/test/rustdoc-gui/impl-doc.goml9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/impl-doc.goml b/src/test/rustdoc-gui/impl-doc.goml
new file mode 100644
index 00000000000..7322032b3f5
--- /dev/null
+++ b/src/test/rustdoc-gui/impl-doc.goml
@@ -0,0 +1,9 @@
+// A docblock on an impl must have a margin to separate it from the contents.
+goto: "file://" + |DOC_PATH| + "/test_docs/struct.TypeWithImplDoc.html"
+
+// The text is about 24px tall, so if there's a margin, then their position will be >24px apart
+compare-elements-position-near-false: (
+	"#implementations-list > .implementors-toggle > .docblock > p",
+	"#implementations-list > .implementors-toggle > .impl-items",
+	{"y": 24}
+)