1
Fork 0

Add test to check that font-weight is correctly set on type page

This commit is contained in:
Guillaume Gomez 2021-06-06 23:06:49 +02:00
parent 570ba09cbe
commit 45973621bc
3 changed files with 7 additions and 1 deletions

View file

@ -11,7 +11,8 @@ assert: (".sidebar-elems > .items > ul > li:nth-child(2)", "Structs")
assert: (".sidebar-elems > .items > ul > li:nth-child(3)", "Enums") assert: (".sidebar-elems > .items > ul > li:nth-child(3)", "Enums")
assert: (".sidebar-elems > .items > ul > li:nth-child(4)", "Traits") assert: (".sidebar-elems > .items > ul > li:nth-child(4)", "Traits")
assert: (".sidebar-elems > .items > ul > li:nth-child(5)", "Functions") assert: (".sidebar-elems > .items > ul > li:nth-child(5)", "Functions")
assert: (".sidebar-elems > .items > ul > li:nth-child(6)", "Keywords") assert: (".sidebar-elems > .items > ul > li:nth-child(6)", "Type Definitions")
assert: (".sidebar-elems > .items > ul > li:nth-child(7)", "Keywords")
assert: ("#structs + table td > a", "Foo") assert: ("#structs + table td > a", "Foo")
click: "#structs + table td > a" click: "#structs + table td > a"

View file

@ -96,3 +96,6 @@ pub enum AnEnum {
#[doc(keyword = "CookieMonster")] #[doc(keyword = "CookieMonster")]
pub mod keyword {} pub mod keyword {}
/// Just some type alias.
pub type SomeType = u32;

View file

@ -0,0 +1,2 @@
goto: file://|DOC_PATH|/test_docs/type.SomeType.html
assert-all: (".top-block .docblock p", {"font-weight": "400"})