2022-09-21 14:08:54 +00:00
|
|
|
// This test checks that using `.stab` attributes in `.docblock` elements doesn't
|
|
|
|
// create scrollable paragraphs.
|
2023-04-11 17:11:34 +00:00
|
|
|
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
|
2022-09-21 14:08:54 +00:00
|
|
|
// Needs the text to be display to check for scrollable content.
|
|
|
|
show-text: true
|
2023-04-11 17:11:34 +00:00
|
|
|
set-window-size: (786, 600)
|
2022-09-21 14:08:54 +00:00
|
|
|
// Confirms that there 3 paragraphs.
|
|
|
|
assert-count: (".top-doc .docblock p", 3)
|
|
|
|
// Checking that there is no scrollable content.
|
2023-05-10 08:56:59 +00:00
|
|
|
store-property: (".top-doc .docblock p:nth-of-type(1)", {
|
|
|
|
"clientHeight": clientHeight,
|
|
|
|
"clientWidth": clientWidth,
|
|
|
|
})
|
2022-09-21 14:08:54 +00:00
|
|
|
assert-property: (
|
|
|
|
".top-doc .docblock p:nth-of-type(1)",
|
2022-09-23 16:12:37 +00:00
|
|
|
{"scrollHeight": |clientHeight|, "scrollWidth": |clientWidth|},
|
2022-09-21 14:08:54 +00:00
|
|
|
)
|
2023-05-10 08:56:59 +00:00
|
|
|
store-property: (".top-doc .docblock p:nth-of-type(2)", {
|
|
|
|
"clientHeight": clientHeight,
|
|
|
|
"clientWidth": clientWidth,
|
|
|
|
})
|
2022-09-21 14:08:54 +00:00
|
|
|
assert-property: (
|
|
|
|
".top-doc .docblock p:nth-of-type(2)",
|
2022-09-23 16:12:37 +00:00
|
|
|
{"scrollHeight": |clientHeight|, "scrollWidth": |clientWidth|},
|
2022-09-21 14:08:54 +00:00
|
|
|
)
|
2023-05-10 08:56:59 +00:00
|
|
|
store-property: (".top-doc .docblock p:nth-of-type(3)", {
|
|
|
|
"clientHeight": clientHeight,
|
|
|
|
"clientWidth": clientWidth,
|
|
|
|
})
|
2022-09-21 14:08:54 +00:00
|
|
|
assert-property: (
|
|
|
|
".top-doc .docblock p:nth-of-type(3)",
|
2022-09-23 16:12:37 +00:00
|
|
|
{"scrollHeight": |clientHeight|, "scrollWidth": |clientWidth|},
|
2022-09-21 14:08:54 +00:00
|
|
|
)
|