summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-gui/impl-doc.goml
blob: 6caffb9c39fc1b4210034753ad8e3251f7bad4db (plain)
1
2
3
4
5
6
7
8
9
// A docblock on an impl must have a margin to separate it from the contents.
goto: "file://" + |DOC_PATH| + "/test_docs/struct.TypeWithImplDoc.html"

// The text is about 24px tall, so if there's a margin, then their position will be >24px apart
compare-elements-position-near-false: (
    "#implementations-list > .implementors-toggle > .docblock > p",
    "#implementations-list > .implementors-toggle > .impl-items",
    {"y": 24}
)