1 // This test ensures that the "item-info" elements don't overflow.
2 goto: file://|DOC_PATH|/lib2/struct.LongItemInfo.html
3 // We set a fixed size so there is no chance of "random" resize.
5 // Logically, the "item-decl" and the "item-info" should have the same scroll width.
6 compare-elements-property: (".docblock.item-decl", ".item-info", ["scrollWidth"])
7 assert-property: (".item-info", {"scrollWidth": "890"})
8 // Just to be sure we're comparing the correct "item-info":
11 "Available on Android or Linux or Emscripten or DragonFly BSD",
15 // Checking the "item-info" on an impl block as well:
16 goto: file://|DOC_PATH|/lib2/struct.LongItemInfo2.html
17 compare-elements-property: (
18 "#impl-SimpleTrait .item-info",
19 "#impl-SimpleTrait + .docblock",
22 assert-property: ("#impl-SimpleTrait .item-info", {"scrollWidth": "866"})
23 // Just to be sure we're comparing the correct "item-info":
25 "#impl-SimpleTrait .item-info",
26 "Available on Android or Linux or Emscripten or DragonFly BSD",