Add a font test based on #85669
This commit is contained in:
parent
5e4657d3f7
commit
ee4521e19b
1 changed files with 21 additions and 0 deletions
21
src/test/rustdoc-gui/module-item-font.goml
Normal file
21
src/test/rustdoc-gui/module-item-font.goml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
goto: file://|DOC_PATH|/test_docs/index.html
|
||||||
|
// This test ensures that the correct font is applied on the modules listed items.
|
||||||
|
|
||||||
|
// modules
|
||||||
|
assert-css: ("#modules + .item-table .item-left a", {"font-family": '"Fira Sans", Arial, sans-serif'})
|
||||||
|
assert-css: ("#modules + .item-table .item-right.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 .item-right.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 .item-right.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 .item-right.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 .item-right.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 .item-right.docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'})
|
Loading…
Add table
Reference in a new issue