2021-07-17 17:03:08 -05:00
|
|
|
// This test ensures that the type declaration content overflow is handled inside the <pre> directly.
|
2022-10-07 13:17:05 -05:00
|
|
|
goto: "file://" + |DOC_PATH| + "/lib2/long_table/struct.Foo.html"
|
2021-07-17 17:03:08 -05:00
|
|
|
// We set a fixed size so there is no chance of "random" resize.
|
|
|
|
size: (1100, 800)
|
|
|
|
// Logically, the ".docblock" and the "<p>" should have the same scroll width.
|
|
|
|
compare-elements-property: (".top-doc .docblock", ".top-doc .docblock > p", ["scrollWidth"])
|
2022-09-22 13:51:48 -05:00
|
|
|
assert-property: (".top-doc .docblock", {"scrollWidth": "816"})
|
2021-07-17 17:03:08 -05:00
|
|
|
// However, since there is overflow in the <table>, its scroll width is bigger.
|
2022-09-10 10:36:17 -05:00
|
|
|
assert-property: (".top-doc .docblock table", {"scrollWidth": "1572"})
|
2021-09-08 08:09:47 -05:00
|
|
|
|
|
|
|
// Checking it works on other doc blocks as well...
|
|
|
|
|
|
|
|
// Logically, the ".docblock" and the "<p>" should have the same scroll width.
|
2021-12-12 11:28:58 -06:00
|
|
|
compare-elements-property: (
|
2022-03-08 11:11:29 -06:00
|
|
|
"#implementations-list > details .docblock",
|
|
|
|
"#implementations-list > details .docblock > p",
|
2021-12-12 11:28:58 -06:00
|
|
|
["scrollWidth"],
|
|
|
|
)
|
2022-09-22 13:51:48 -05:00
|
|
|
assert-property: ("#implementations-list > details .docblock", {"scrollWidth": "816"})
|
2021-09-08 08:09:47 -05:00
|
|
|
// However, since there is overflow in the <table>, its scroll width is bigger.
|
2022-09-10 10:36:17 -05:00
|
|
|
assert-property: ("#implementations-list > details .docblock table", {"scrollWidth": "1572"})
|