1 // Checks that the setting "auto hide trait implementations" is working as expected.
2 goto: file://|DOC_PATH|/test_docs/struct.Foo.html
4 // By default, the trait implementations are not collapsed.
5 assert-attribute: ("#trait-implementations-list > details", {"open": ""}, ALL)
7 // We now set the setting to auto hide all trait implementations.
8 local-storage: {"rustdoc-auto-hide-trait-implementations": "true" }
9 // We reload to ensure the trait implementations are collapsed as expected.
12 // We now check that all matching elements don't have the open attributes.
13 assert-attribute-false: ("#trait-implementations-list > details", {"open": ""}, ALL)