2022-09-21 09:08:54 -05:00
|
|
|
// This test checks that using `.stab` attributes in `.docblock` elements doesn't
|
|
|
|
// create scrollable paragraphs.
|
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.
|
2022-09-23 11:12:37 -05:00
|
|
|
store-property: (clientHeight, ".top-doc .docblock p:nth-of-type(1)", "clientHeight")
|
|
|
|
store-property: (clientWidth, ".top-doc .docblock p:nth-of-type(1)", "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
|
|
|
)
|
2022-09-23 11:12:37 -05:00
|
|
|
store-property: (clientHeight, ".top-doc .docblock p:nth-of-type(2)", "clientHeight")
|
|
|
|
store-property: (clientWidth, ".top-doc .docblock p:nth-of-type(2)", "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
|
|
|
)
|
2022-09-23 11:12:37 -05:00
|
|
|
store-property: (clientHeight, ".top-doc .docblock p:nth-of-type(3)", "clientHeight")
|
|
|
|
store-property: (clientWidth, ".top-doc .docblock p:nth-of-type(3)", "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
|
|
|
)
|