]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-gui/auto-hide-trait-implementations.goml
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / 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)