]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-gui/method-margins.goml
Auto merge of #106696 - kylematsuda:early-binder, r=lcnr
[rust.git] / tests / rustdoc-gui / method-margins.goml
1 // This test ensures that the margins on methods are coherent inside an impl block.
2 goto: "file://" + |DOC_PATH| + "/test_docs/trait_members/struct.HasTrait.html#impl-TraitMembers-for-HasTrait"
3
4 assert-count: ("#trait-implementations-list > .toggle", 1)
5
6 compare-elements-css: (
7     // compare margin on type with margin on method
8     "#trait-implementations-list .impl-items > .toggle:nth-child(1) > summary",
9     "#trait-implementations-list .impl-items > .toggle:nth-child(2) > summary",
10     ["margin"]
11 )
12
13 compare-elements-css: (
14     // compare margin on type with margin on method
15     "#trait-implementations-list .impl-items > .toggle:nth-child(1)",
16     "#trait-implementations-list .impl-items > .toggle:nth-child(2)",
17     ["margin"]
18 )