Skip to content

Commit e701d8a

Browse files
Add new rustdoc-GUI to ensure correct font is used on module items
1 parent 73d96b0 commit e701d8a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// This test ensures that the correct font is applied on the modules listed items.
2+
goto: file://|DOC_PATH|/test_docs/index.html
3+
// modules
4+
assert-css: ("#modules + .item-table .item-left > a", {"font-family": '"Fira Sans", Arial, sans-serif'})
5+
assert-css: ("#modules + .item-table .docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'})
6+
// structs
7+
assert-css: ("#structs + .item-table .item-left > a", {"font-family": '"Fira Sans", Arial, sans-serif'})
8+
assert-css: ("#structs + .item-table .docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'})
9+
// enums
10+
assert-css: ("#enums + .item-table .item-left > a", {"font-family": '"Fira Sans", Arial, sans-serif'})
11+
assert-css: ("#enums + .item-table .docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'})
12+
// traits
13+
assert-css: ("#traits + .item-table .item-left > a", {"font-family": '"Fira Sans", Arial, sans-serif'})
14+
assert-css: ("#traits + .item-table .docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'})
15+
// functions
16+
assert-css: ("#functions + .item-table .item-left > a", {"font-family": '"Fira Sans", Arial, sans-serif'})
17+
assert-css: ("#functions + .item-table .docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'})
18+
// keywords
19+
assert-css: ("#keywords + .item-table .item-left > a", {"font-family": '"Fira Sans", Arial, sans-serif'})
20+
assert-css: ("#keywords + .item-table .docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'})

0 commit comments

Comments
 (0)