Add test to ensure that the docblock elements left margin is as expected

This commit is contained in:
Guillaume Gomez 2021-10-18 16:50:31 +02:00
parent 20c286e268
commit 77c29294be

View 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"})