summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-gui/module-items-font.goml
blob: 54c8131c3b90825830bf40906b6b709bfa60978a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// This test checks that the correct font is used on module items (in index.html pages).
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
assert-css: (
    ".item-table .item-name > a",
    {"font-family": '"Fira Sans", Arial, NanumBarunGothic, sans-serif'},
    ALL,
)
assert-css: (
    ".item-table .docblock-short",
    {"font-family": '"Source Serif 4", NanumBarunGothic, serif'},
    ALL,
)

// modules
assert-css: (
    "#modules + .item-table .item-name a",
    {"font-family": '"Fira Sans", Arial, NanumBarunGothic, sans-serif'},
)
assert-css: (
    "#modules + .item-table .desc.docblock-short",
    {"font-family": '"Source Serif 4", NanumBarunGothic, serif'},
)
// structs
assert-css: (
    "#structs + .item-table .item-name a",
    {"font-family": '"Fira Sans", Arial, NanumBarunGothic, sans-serif'},
)
assert-css: (
    "#structs + .item-table .desc.docblock-short",
    {"font-family": '"Source Serif 4", NanumBarunGothic, serif'},
)
// enums
assert-css: (
    "#enums + .item-table .item-name a",
    {"font-family": '"Fira Sans", Arial, NanumBarunGothic, sans-serif'},
)
assert-css: (
    "#enums + .item-table .desc.docblock-short",
    {"font-family": '"Source Serif 4", NanumBarunGothic, serif'},
)
// traits
assert-css: (
    "#traits + .item-table .item-name a",
    {"font-family": '"Fira Sans", Arial, NanumBarunGothic, sans-serif'},
)
assert-css: (
    "#traits + .item-table .desc.docblock-short",
    {"font-family": '"Source Serif 4", NanumBarunGothic, serif'},
)
// functions
assert-css: (
    "#functions + .item-table .item-name a",
    {"font-family": '"Fira Sans", Arial, NanumBarunGothic, sans-serif'},
)
assert-css: (
    "#functions + .item-table .desc.docblock-short",
    {"font-family": '"Source Serif 4", NanumBarunGothic, serif'},
)
// keywords
assert-css: (
    "#keywords + .item-table .item-name a",
    {"font-family": '"Fira Sans", Arial, NanumBarunGothic, sans-serif'},
)
assert-css: (
    "#keywords + .item-table .desc.docblock-short",
    {"font-family": '"Source Serif 4", NanumBarunGothic, serif'},
)