Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new rustdoc-GUI to ensure correct font is used on module items #85669

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/test/rustdoc-gui/module-item-font.goml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// This test ensures that the correct font is applied on the modules listed items.
goto: file://|DOC_PATH|/test_docs/index.html
// modules
assert-css: ("#modules + .item-table .item-left > a", {"font-family": '"Fira Sans", Arial, sans-serif'})
assert-css: ("#modules + .item-table .docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'})
// structs
assert-css: ("#structs + .item-table .item-left > a", {"font-family": '"Fira Sans", Arial, sans-serif'})
assert-css: ("#structs + .item-table .docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'})
// enums
assert-css: ("#enums + .item-table .item-left > a", {"font-family": '"Fira Sans", Arial, sans-serif'})
assert-css: ("#enums + .item-table .docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'})
// traits
assert-css: ("#traits + .item-table .item-left > a", {"font-family": '"Fira Sans", Arial, sans-serif'})
assert-css: ("#traits + .item-table .docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'})
// functions
assert-css: ("#functions + .item-table .item-left > a", {"font-family": '"Fira Sans", Arial, sans-serif'})
assert-css: ("#functions + .item-table .docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'})
// keywords
assert-css: ("#keywords + .item-table .item-left > a", {"font-family": '"Fira Sans", Arial, sans-serif'})
assert-css: ("#keywords + .item-table .docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'})