]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/auto-hide-trait-implementations.goml
Merge commit 'f4850f7292efa33759b4f7f9b7621268979e9914' into clippyup
[rust.git] / src / test / rustdoc-gui / auto-hide-trait-implementations.goml
1 // Checks that the setting "auto hide trait implementations" is working as expected.
2 goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
3
4 // By default, the trait implementations are not collapsed.
5 assert-attribute: ("#trait-implementations-list > details", {"open": ""}, ALL)
6
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.
10 reload:
11
12 // We now check that all matching elements don't have the open attributes.
13 assert-attribute-false: ("#trait-implementations-list > details", {"open": ""}, ALL)