1 // This test ensures that the type declaration content overflow is handled inside the <pre> directly.
2 goto: "file://" + |DOC_PATH| + "/lib2/long_table/struct.Foo.html"
3 // We set a fixed size so there is no chance of "random" resize.
5 // Logically, the ".docblock" and the "<p>" should have the same scroll width.
6 compare-elements-property: (".top-doc .docblock", ".top-doc .docblock > p", ["scrollWidth"])
7 assert-property: (".top-doc .docblock", {"scrollWidth": "816"})
8 // However, since there is overflow in the <table>, its scroll width is bigger.
9 assert-property: (".top-doc .docblock table", {"scrollWidth": "1572"})
11 // Checking it works on other doc blocks as well...
13 // Logically, the ".docblock" and the "<p>" should have the same scroll width.
14 compare-elements-property: (
15 "#implementations-list > details .docblock",
16 "#implementations-list > details .docblock > p",
19 assert-property: ("#implementations-list > details .docblock", {"scrollWidth": "816"})
20 // However, since there is overflow in the <table>, its scroll width is bigger.
21 assert-property: ("#implementations-list > details .docblock table", {"scrollWidth": "1572"})