fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
743 B18 linesraw
1// This test ensures that the margins on methods are coherent inside an impl block.
2go-to: "file://" + |DOC_PATH| + "/test_docs/trait_members/struct.HasTrait.html#impl-TraitMembers-for-HasTrait"
3
4assert-count: ("#trait-implementations-list > .toggle", 1)
5
6compare-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
13compare-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)