]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc-gui/item-info-width.goml
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / rustdoc-gui / item-info-width.goml
1 // This test ensures that the item information don't take 100% of the width if unnecessary.
2 goto: file://|DOC_PATH|/lib2/struct.Foo.html
3 // We set a fixed size so there is no chance of "random" resize.
4 size: (1100, 800)
5 // We check that ".item-info" is bigger than its content.
6 assert-css: (".item-info", {"width": "790px"})
7 assert-css: (".item-info .stab", {"width": "289px"})
8 assert-position: (".item-info .stab", {"x": 295})