mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
894c98652c
This switches from using `<div>` to the more semantic `<ul>`, and using class names that rhyme with the classes the search results table uses.
68 lines
2.0 KiB
Plaintext
68 lines
2.0 KiB
Plaintext
// This test checks that the correct font is used on module items (in index.html pages).
|
|
goto: "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'},
|
|
)
|