We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5e5d96 commit a96ccbeCopy full SHA for a96ccbe
src/test/rustdoc-gui/stab-badge.goml
@@ -1,6 +1,21 @@
1
// All stability badges should have rounded corners and colored backgrounds.
2
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
3
show-text: true
4
+
5
+// Checking the alignment of the badges text with the item name.
6
+assert-css: (
7
+ "//*[@class='item-table']//*[@class='item-left module-item']/*[@class='stab deprecated']",
8
+ {"padding-top": "2px"},
9
+)
10
+assert-position: (
11
12
+ {"y": 1892},
13
14
15
+ "//*[@class='item-table']//*[@class='item-left module-item']/*[@class='stab deprecated']/preceding-sibling::a",
16
+ {"y": 1894}, // 1892 + 2 because of padding
17
18
19
define-function: (
20
"check-badge",
21
(theme, background, color),
0 commit comments