2021-07-16 08:15:23 -05:00
|
|
|
// Checks that the setting "auto hide trait implementations" is working as expected.
|
2022-10-07 13:17:05 -05:00
|
|
|
goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
|
2021-07-16 08:15:23 -05:00
|
|
|
|
|
|
|
// By default, the trait implementations are not collapsed.
|
|
|
|
assert-attribute: ("#trait-implementations-list > details", {"open": ""}, ALL)
|
|
|
|
|
|
|
|
// We now set the setting to auto hide all trait implementations.
|
|
|
|
local-storage: {"rustdoc-auto-hide-trait-implementations": "true" }
|
|
|
|
// We reload to ensure the trait implementations are collapsed as expected.
|
|
|
|
reload:
|
|
|
|
|
|
|
|
// We now check that all matching elements don't have the open attributes.
|
|
|
|
assert-attribute-false: ("#trait-implementations-list > details", {"open": ""}, ALL)
|