]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-gui/check_info_sign_position.goml
Rollup merge of #106766 - GuillaumeGomez:rm-stripper-dead-code, r=notriddle
[rust.git] / tests / rustdoc-gui / check_info_sign_position.goml
1 // This test checks the position of the information on the code blocks (like
2 // `compile_fail` or `ignore`).
3 goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
4 goto: "./fn.check_list_code_block.html"
5 // If the codeblock is the first element of the docblock, the information tooltip must have
6 // have some top margin to avoid going over the toggle (the "[+]").
7 assert-css: (".docblock > .example-wrap.compile_fail .tooltip", { "margin-top": "16px" })
8 // Checks that the other codeblocks don't have this top margin.
9 assert-css: ("ol > li > .example-wrap.compile_fail .tooltip", { "margin-top": "0px" })
10 assert-css: ("ol > li > .example-wrap.ignore .tooltip", { "margin-top": "0px" })
11 assert-css: (".docblock > .example-wrap.ignore .tooltip", { "margin-top": "0px" })