diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-08-04 17:41:48 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-08-04 19:17:08 +0200 |
| commit | 22607491bb944a715a15c15749f563986e6984bf (patch) | |
| tree | 864b33abb62ed43a66e09dcd4c53a705cd631061 | |
| parent | b4f404b581a3e93c146ca2ea711fa03dca77327b (diff) | |
| download | rust-22607491bb944a715a15c15749f563986e6984bf.tar.gz rust-22607491bb944a715a15c15749f563986e6984bf.zip | |
Add GUI regression test for tooltips `i` icons
| -rw-r--r-- | tests/rustdoc-gui/tooltips.goml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/tooltips.goml b/tests/rustdoc-gui/tooltips.goml new file mode 100644 index 00000000000..6e79196be27 --- /dev/null +++ b/tests/rustdoc-gui/tooltips.goml @@ -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"}) |
