Add tests to ensure the font-weight is the correct one
This commit is contained in:
@@ -5,3 +5,16 @@ assert-css: ("//*[@class='structfield small-section-header']//a[text()='Alias']"
|
|||||||
assert-css: ("#method\.a_method > code", {"font-weight": "600"})
|
assert-css: ("#method\.a_method > code", {"font-weight": "600"})
|
||||||
assert-css: ("#associatedtype\.X > code", {"font-weight": "600"})
|
assert-css: ("#associatedtype\.X > code", {"font-weight": "600"})
|
||||||
assert-css: ("#associatedconstant\.Y > code", {"font-weight": "600"})
|
assert-css: ("#associatedconstant\.Y > code", {"font-weight": "600"})
|
||||||
|
|
||||||
|
goto: file://|DOC_PATH|/test_docs/type.SomeType.html
|
||||||
|
assert-css: (".top-doc .docblock p", {"font-weight": "400"}, ALL)
|
||||||
|
|
||||||
|
goto: file://|DOC_PATH|/test_docs/struct.Foo.html
|
||||||
|
assert-css: (".impl-items .method", {"font-weight": "600"}, ALL)
|
||||||
|
|
||||||
|
goto: file://|DOC_PATH|/lib2/trait.Trait.html
|
||||||
|
assert-count: (".methods .type", 1)
|
||||||
|
assert-css: (".methods .type", {"font-weight": "600"})
|
||||||
|
assert-count: (".methods .constant", 1)
|
||||||
|
assert-css: (".methods .constant", {"font-weight": "600"})
|
||||||
|
assert-css: (".methods .method", {"font-weight": "600"})
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ impl Foo {
|
|||||||
pub trait Trait {
|
pub trait Trait {
|
||||||
type X;
|
type X;
|
||||||
const Y: u32;
|
const Y: u32;
|
||||||
|
|
||||||
|
fn foo() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Trait for Foo {
|
impl Trait for Foo {
|
||||||
|
|||||||
Reference in New Issue
Block a user