summary refs log tree commit diff
path: root/src/test/rustdoc-gui/item-info-width.goml
blob: 8b6d355a8f1a7f488911fd79c505a6a793b6bda9 (plain)
1
2
3
4
5
6
7
8
// This test ensures that the item information don't take 100% of the width if unnecessary.
goto: file://|DOC_PATH|/lib2/struct.Foo.html
// We set a fixed size so there is no chance of "random" resize.
size: (1100, 800)
// We check that ".item-info" is bigger than its content.
assert-css: (".item-info", {"width": "790px"})
assert-css: (".item-info .stab", {"width": "289px"})
assert-position: (".item-info .stab", {"x": 295})