Add GUI regression test for tooltips i icons
This commit is contained in:
15
tests/rustdoc-gui/tooltips.goml
Normal file
15
tests/rustdoc-gui/tooltips.goml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
// This test checks that the right font is applied to the `i` tooltip element.
|
||||||
|
|
||||||
|
define-function: (
|
||||||
|
"check-font",
|
||||||
|
[path],
|
||||||
|
block {
|
||||||
|
go-to: "file://" + |DOC_PATH| + "/test_docs/" + |path|
|
||||||
|
assert-css: (
|
||||||
|
"a.tooltip", {"font-family": '"Source Serif 4", NanumBarunGothic, serif'}, ALL,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
call-function: ("check-font", {"path": "tooltips/fn.bar.html"})
|
||||||
|
call-function: ("check-font", {"path": "tooltips/struct.X.html"})
|
||||||
Reference in New Issue
Block a user