2022-09-21 09:08:54 -05:00
|
|
|
// This test checks that using `.stab` attributes in `.docblock` elements doesn't
|
2024-10-26 08:45:17 -05:00
|
|
|
// create scrollable paragraphs and is correctly displayed (not making weird blocks).
|
2023-04-11 12:11:34 -05:00
|
|
|
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
|
2022-09-21 09:08:54 -05:00
|
|
|
// Needs the text to be display to check for scrollable content.
|
|
|
|
show-text: true
|
2023-04-11 12:11:34 -05:00
|
|
|
set-window-size: (786, 600)
|
2022-09-21 09:08:54 -05:00
|
|
|
// Confirms that there 3 paragraphs.
|
|
|
|
assert-count: (".top-doc .docblock p", 3)
|
|
|
|
// Checking that there is no scrollable content.
|
2023-05-10 03:56:59 -05:00
|
|
|
store-property: (".top-doc .docblock p:nth-of-type(1)", {
|
|
|
|
"clientHeight": clientHeight,
|
|
|
|
"clientWidth": clientWidth,
|
|
|
|
})
|
2022-09-21 09:08:54 -05:00
|
|
|
assert-property: (
|
|
|
|
".top-doc .docblock p:nth-of-type(1)",
|
2022-09-23 11:12:37 -05:00
|
|
|
{"scrollHeight": |clientHeight|, "scrollWidth": |clientWidth|},
|
2022-09-21 09:08:54 -05:00
|
|
|
)
|
2023-05-10 03:56:59 -05:00
|
|
|
store-property: (".top-doc .docblock p:nth-of-type(2)", {
|
|
|
|
"clientHeight": clientHeight,
|
|
|
|
"clientWidth": clientWidth,
|
|
|
|
})
|
2022-09-21 09:08:54 -05:00
|
|
|
assert-property: (
|
|
|
|
".top-doc .docblock p:nth-of-type(2)",
|
2022-09-23 11:12:37 -05:00
|
|
|
{"scrollHeight": |clientHeight|, "scrollWidth": |clientWidth|},
|
2022-09-21 09:08:54 -05:00
|
|
|
)
|
2023-05-10 03:56:59 -05:00
|
|
|
store-property: (".top-doc .docblock p:nth-of-type(3)", {
|
|
|
|
"clientHeight": clientHeight,
|
|
|
|
"clientWidth": clientWidth,
|
|
|
|
})
|
2022-09-21 09:08:54 -05:00
|
|
|
assert-property: (
|
|
|
|
".top-doc .docblock p:nth-of-type(3)",
|
2022-09-23 11:12:37 -05:00
|
|
|
{"scrollHeight": |clientHeight|, "scrollWidth": |clientWidth|},
|
2022-09-21 09:08:54 -05:00
|
|
|
)
|
2024-10-26 08:45:17 -05:00
|
|
|
|
|
|
|
// Ensure that `<code>` elements in code don't make big blocks.
|
|
|
|
compare-elements-size-near: (
|
|
|
|
"#reexport\.TheStdReexport > code",
|
|
|
|
".docblock p span[data-span='1']",
|
|
|
|
{"height": 1},
|
|
|
|
)
|
|
|
|
compare-elements-size-near: (
|
|
|
|
"#reexport\.TheStdReexport > code",
|
|
|
|
".docblock p span[data-span='2']",
|
|
|
|
{"height": 1},
|
|
|
|
)
|