]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc-gui/item-info-overflow.goml
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / rustdoc-gui / item-info-overflow.goml
CommitLineData
04454e1e 1// This test ensures that the "item-info" elements don't overflow.
2b03887a 2goto: "file://" + |DOC_PATH| + "/lib2/struct.LongItemInfo.html"
04454e1e
FG
3// We set a fixed size so there is no chance of "random" resize.
4size: (1200, 870)
5// Logically, the "item-decl" and the "item-info" should have the same scroll width.
2b03887a
FG
6compare-elements-property: (".item-decl", ".item-info", ["scrollWidth"])
7assert-property: (".item-info", {"scrollWidth": "940"})
04454e1e
FG
8// Just to be sure we're comparing the correct "item-info":
9assert-text: (
10 ".item-info",
11 "Available on Android or Linux or Emscripten or DragonFly BSD",
12 STARTS_WITH,
13)
14
15// Checking the "item-info" on an impl block as well:
2b03887a 16goto: "file://" + |DOC_PATH| + "/lib2/struct.LongItemInfo2.html"
04454e1e 17compare-elements-property: (
064997fb
FG
18 "#impl-SimpleTrait-for-LongItemInfo2 .item-info",
19 "#impl-SimpleTrait-for-LongItemInfo2 + .docblock",
04454e1e
FG
20 ["scrollWidth"],
21)
064997fb
FG
22assert-property: (
23 "#impl-SimpleTrait-for-LongItemInfo2 .item-info",
2b03887a 24 {"scrollWidth": "916"},
064997fb 25)
04454e1e
FG
26// Just to be sure we're comparing the correct "item-info":
27assert-text: (
064997fb 28 "#impl-SimpleTrait-for-LongItemInfo2 .item-info",
04454e1e
FG
29 "Available on Android or Linux or Emscripten or DragonFly BSD",
30 STARTS_WITH,
31)