summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-gui/docblock-details.goml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/rustdoc-gui/docblock-details.goml
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/rustdoc-gui/docblock-details.goml')
-rw-r--r--src/test/rustdoc-gui/docblock-details.goml34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/test/rustdoc-gui/docblock-details.goml b/src/test/rustdoc-gui/docblock-details.goml
deleted file mode 100644
index 9ae571efb..000000000
--- a/src/test/rustdoc-gui/docblock-details.goml
+++ /dev/null
@@ -1,34 +0,0 @@
-// This ensures that the `<details>`/`<summary>` elements are displayed as expected.
-goto: "file://" + |DOC_PATH| + "/test_docs/details/struct.Details.html"
-show-text: true
-local-storage: {"rustdoc-theme": "dark", "rustdoc-use-system-theme": "false"}
-reload:
-
-// We first check that the headers in the `.top-doc` doc block still have their
-// bottom border.
-assert-text: (".top-doc .docblock > h3", "Hello")
-assert-css: (
- ".top-doc .docblock > h3",
- {"border-bottom": "1px solid rgb(210, 210, 210)"},
-)
-// We now check that the `<summary>` doesn't have a bottom border and has the correct display.
-assert-css: (
- ".top-doc .docblock summary h4",
- {"border-bottom-width": "0px"},
-)
-// This allows to ensure that summary is on one line only!
-assert-property: (".top-doc .docblock summary h4", {"offsetHeight": "33"})
-assert-css: (".top-doc .docblock summary h4", {"margin-top": "15px", "margin-bottom": "5px"})
-// So `33 + 15 + 5` == `53`
-assert-property: (".top-doc .docblock summary", {"offsetHeight": "53"})
-
-// We now check the `<summary>` on a method.
-assert-css: (
- ".method-toggle .docblock summary h4",
- {"border-bottom-width": "0px"},
-)
-// This allows to ensure that summary is on one line only!
-assert-property: (".method-toggle .docblock summary h4", {"offsetHeight": "30"})
-assert-css: (".method-toggle .docblock summary h4", {"margin-top": "15px", "margin-bottom": "5px"})
-// So `30 + 15 + 5` == `50`
-assert-property: (".method-toggle .docblock summary", {"offsetHeight": "50"})