mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Add test to ensure that the docblock elements left margin is as expected
This commit is contained in:
parent
20c286e268
commit
77c29294be
6
src/test/rustdoc-gui/check-code-blocks-margin.goml
Normal file
6
src/test/rustdoc-gui/check-code-blocks-margin.goml
Normal file
@ -0,0 +1,6 @@
|
||||
// This test ensures that the docblock elements have the appropriate left margin.
|
||||
goto: file://|DOC_PATH|/test_docs/fn.foo.html
|
||||
// The top docblock elements shouldn't have left margin...
|
||||
assert-css: ("#main .docblock.item-decl", {"margin-left": "0px"})
|
||||
// ... but all the others should!
|
||||
assert-css: ("#main .docblock:not(.item-decl)", {"margin-left": "24px"})
|
Loading…
Reference in New Issue
Block a user