File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ // This test checks that there are margins applied to methods with no docblocks.
2+ goto: file://|DOC_PATH|/test_docs/trait.TraitWithNoDocblocks.html
3+ // Check that the two methods are more than 24px apart.
4+ compare-elements-position-near-false: ("//*[@id='tymethod.first_fn']", "//*[@id='tymethod.second_fn']", {"y": 24})
5+
6+ goto: file://|DOC_PATH|/test_docs/struct.TypeWithNoDocblocks.html
7+ // Check that the two methods are more than 24px apart.
8+ compare-elements-position-near-false: ("//*[@id='method.first_fn']", "//*[@id='method.second_fn']", {"y": 24})
Original file line number Diff line number Diff line change @@ -355,3 +355,15 @@ impl<R: std::io::Read> std::iter::Iterator for NotableStructWithLongName<R> {
355355
356356 fn next ( & mut self ) -> Option < Self :: Item > { ( ) }
357357}
358+
359+ pub trait TraitWithNoDocblocks {
360+ fn first_fn ( & self ) ;
361+ fn second_fn ( & self ) ;
362+ }
363+
364+ pub struct TypeWithNoDocblocks ;
365+
366+ impl TypeWithNoDocblocks {
367+ pub fn first_fn ( & self ) { }
368+ pub fn second_fn ( & self ) { }
369+ }
You can’t perform that action at this time.
0 commit comments