Skip to content

Commit 2260749

Browse files
Add GUI regression test for tooltips i icons
1 parent b4f404b commit 2260749

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/rustdoc-gui/tooltips.goml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This test checks that the right font is applied to the `i` tooltip element.
2+
3+
define-function: (
4+
"check-font",
5+
[path],
6+
block {
7+
go-to: "file://" + |DOC_PATH| + "/test_docs/" + |path|
8+
assert-css: (
9+
"a.tooltip", {"font-family": '"Source Serif 4", NanumBarunGothic, serif'}, ALL,
10+
)
11+
}
12+
)
13+
14+
call-function: ("check-font", {"path": "tooltips/fn.bar.html"})
15+
call-function: ("check-font", {"path": "tooltips/struct.X.html"})

0 commit comments

Comments
 (0)