File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,16 @@ assert-css: ("//*[@class='structfield small-section-header']//a[text()='Alias']"
5
5
assert-css: ("#method\.a_method > code", {"font-weight": "600"})
6
6
assert-css: ("#associatedtype\.X > code", {"font-weight": "600"})
7
7
assert-css: ("#associatedconstant\.Y > code", {"font-weight": "600"})
8
+
9
+ goto: file://|DOC_PATH|/test_docs/type.SomeType.html
10
+ assert-css: (".top-doc .docblock p", {"font-weight": "400"}, ALL)
11
+
12
+ goto: file://|DOC_PATH|/test_docs/struct.Foo.html
13
+ assert-css: (".impl-items .method", {"font-weight": "600"}, ALL)
14
+
15
+ goto: file://|DOC_PATH|/lib2/trait.Trait.html
16
+ assert-count: (".methods .type", 1)
17
+ assert-css: (".methods .type", {"font-weight": "600"})
18
+ assert-count: (".methods .constant", 1)
19
+ assert-css: (".methods .constant", {"font-weight": "600"})
20
+ assert-css: (".methods .method", {"font-weight": "600"})
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ impl Foo {
23
23
pub trait Trait {
24
24
type X ;
25
25
const Y : u32 ;
26
+
27
+ fn foo ( ) { }
26
28
}
27
29
28
30
impl Trait for Foo {
You can’t perform that action at this time.
0 commit comments