2022-04-05 11:04:16 -05:00
|
|
|
// This test ensures that the "item-info" elements don't overflow.
|
2023-04-11 12:11:34 -05:00
|
|
|
go-to: "file://" + |DOC_PATH| + "/lib2/struct.LongItemInfo.html"
|
2022-04-05 11:04:16 -05:00
|
|
|
// We set a fixed size so there is no chance of "random" resize.
|
2023-04-11 12:11:34 -05:00
|
|
|
set-window-size: (1200, 870)
|
2022-04-05 11:04:16 -05:00
|
|
|
// Logically, the "item-decl" and the "item-info" should have the same scroll width.
|
2022-09-19 14:17:05 -05:00
|
|
|
compare-elements-property: (".item-decl", ".item-info", ["scrollWidth"])
|
2022-09-22 13:51:48 -05:00
|
|
|
assert-property: (".item-info", {"scrollWidth": "940"})
|
2022-04-05 11:04:16 -05:00
|
|
|
// Just to be sure we're comparing the correct "item-info":
|
|
|
|
assert-text: (
|
|
|
|
".item-info",
|
2022-04-14 18:03:56 -05:00
|
|
|
"Available on Android or Linux or Emscripten or DragonFly BSD",
|
2022-04-05 11:04:16 -05:00
|
|
|
STARTS_WITH,
|
|
|
|
)
|
|
|
|
|
|
|
|
// Checking the "item-info" on an impl block as well:
|
2023-04-11 12:11:34 -05:00
|
|
|
go-to: "file://" + |DOC_PATH| + "/lib2/struct.LongItemInfo2.html"
|
2022-04-05 11:04:16 -05:00
|
|
|
compare-elements-property: (
|
2022-07-05 08:10:12 -05:00
|
|
|
"#impl-SimpleTrait-for-LongItemInfo2 .item-info",
|
|
|
|
"#impl-SimpleTrait-for-LongItemInfo2 + .docblock",
|
2022-04-05 11:04:16 -05:00
|
|
|
["scrollWidth"],
|
|
|
|
)
|
2022-07-05 08:10:12 -05:00
|
|
|
assert-property: (
|
|
|
|
"#impl-SimpleTrait-for-LongItemInfo2 .item-info",
|
2022-09-22 13:51:48 -05:00
|
|
|
{"scrollWidth": "916"},
|
2022-07-05 08:10:12 -05:00
|
|
|
)
|
2022-04-05 11:04:16 -05:00
|
|
|
// Just to be sure we're comparing the correct "item-info":
|
|
|
|
assert-text: (
|
2022-07-05 08:10:12 -05:00
|
|
|
"#impl-SimpleTrait-for-LongItemInfo2 .item-info",
|
2022-04-14 18:03:56 -05:00
|
|
|
"Available on Android or Linux or Emscripten or DragonFly BSD",
|
2022-04-05 11:04:16 -05:00
|
|
|
STARTS_WITH,
|
|
|
|
)
|