summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-gui/label-next-to-symbol.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/label-next-to-symbol.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/label-next-to-symbol.goml')
-rw-r--r--src/test/rustdoc-gui/label-next-to-symbol.goml66
1 files changed, 0 insertions, 66 deletions
diff --git a/src/test/rustdoc-gui/label-next-to-symbol.goml b/src/test/rustdoc-gui/label-next-to-symbol.goml
deleted file mode 100644
index 05f8ddc71..000000000
--- a/src/test/rustdoc-gui/label-next-to-symbol.goml
+++ /dev/null
@@ -1,66 +0,0 @@
-// These tests verify that labels like "UNIX" and "Deprecated" stay on the same line as their symbol.
-// It also verifies the staggered layout on mobile.
-goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
-
-// Desktop view
-size: (1080, 600)
-assert: (".stab.deprecated")
-assert: (".stab.portability")
-
-// make sure that deprecated and portability have the right colors
-assert-css: (
- ".item-table .item-left .stab.deprecated",
- { "background-color": "rgb(255, 245, 214)" },
-)
-assert-css: (
- ".item-table .item-left .stab.portability",
- { "background-color": "rgb(255, 245, 214)" },
-)
-
-// table like view
-assert-css: (".item-right.docblock-short", { "padding-left": "0px" })
-compare-elements-position-near: (
- "//*[@class='item-left module-item']//a[text()='replaced_function']",
- ".item-left .stab.deprecated",
- {"y": 2},
-)
-compare-elements-position: (
- ".item-left .stab.deprecated",
- ".item-left .stab.portability",
- ("y"),
-)
-
-// Ensure no wrap
-compare-elements-position: (
- "//*[@class='item-left module-item']//a[text()='replaced_function']/..",
- "//*[@class='item-right docblock-short'][text()='a thing with a label']",
- ("y"),
-)
-
-
-// Mobile view
-size: (600, 600)
-// staggered layout with 2em spacing
-assert-css: (".item-right.docblock-short", { "padding-left": "32px" })
-compare-elements-position-near: (
- "//*[@class='item-left module-item']//a[text()='replaced_function']",
- ".item-left .stab.deprecated",
- {"y": 2},
-)
-compare-elements-position: (
- ".item-left .stab.deprecated",
- ".item-left .stab.portability",
- ("y"),
-)
-
-// Ensure wrap
-compare-elements-position-false: (
- "//*[@class='item-left module-item']//a[text()='replaced_function']/..",
- "//*[@class='item-right docblock-short'][text()='a thing with a label']",
- ("y"),
-)
-compare-elements-position-false: (
- ".item-left .stab.deprecated",
- "//*[@class='item-right docblock-short'][text()='a thing with a label']",
- ("y"),
-)