Fix auto-hide for implementations and implementors.
This sets their toggles to be closed in the HTML (matching the default setting), and opens them if the setting indicates to do so. This distinguishes between implementations and implementors based on being descendants of certain named elements.
This commit is contained in:
parent
5dc8789e30
commit
5ebbed6cb0
3 changed files with 24 additions and 6 deletions
|
|
@ -65,7 +65,8 @@ impl T for S2 {
|
|||
}
|
||||
|
||||
// @has manual_impl/struct.S3.html '//*[@class="trait"]' 'T'
|
||||
// @has - '//details[@open=""]/div[@class="docblock"]' 'Docs associated with the S3 trait implementation.'
|
||||
// @has - '//details/div[@class="docblock"]' 'Docs associated with the S3 trait implementation.'
|
||||
// @!has - '//details[@open=""]/div[@class="docblock"]' 'Docs associated with the S3 trait implementation.'
|
||||
// @has - '//details[@open=""]/div[@class="docblock"]' 'Docs associated with the S3 trait b_method implementation.'
|
||||
// @!has - '//div[@class="impl-items"]/details[@open=""]//div[@class="docblock"]' 'Docs associated with the trait a_method definition.'
|
||||
// @has - '//div[@class="impl-items"]/details//div[@class="docblock"]' 'Docs associated with the trait a_method definition.'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue