1 // This test checks that using `.stab` attributes in `.docblock` elements doesn't
2 // create scrollable paragraphs.
3 goto: file://|DOC_PATH|/test_docs/index.html
4 // Needs the text to be display to check for scrollable content.
7 // Confirms that there 3 paragraphs.
8 assert-count: (".top-doc .docblock p", 3)
9 // Checking that there is no scrollable content.
10 store-property: (clientHeight, ".top-doc .docblock p:nth-of-type(1)", "clientHeight")
11 store-property: (clientWidth, ".top-doc .docblock p:nth-of-type(1)", "clientWidth")
13 ".top-doc .docblock p:nth-of-type(1)",
14 {"scrollHeight": |clientHeight|, "scrollWidth": |clientWidth|},
16 store-property: (clientHeight, ".top-doc .docblock p:nth-of-type(2)", "clientHeight")
17 store-property: (clientWidth, ".top-doc .docblock p:nth-of-type(2)", "clientWidth")
19 ".top-doc .docblock p:nth-of-type(2)",
20 {"scrollHeight": |clientHeight|, "scrollWidth": |clientWidth|},
22 store-property: (clientHeight, ".top-doc .docblock p:nth-of-type(3)", "clientHeight")
23 store-property: (clientWidth, ".top-doc .docblock p:nth-of-type(3)", "clientWidth")
25 ".top-doc .docblock p:nth-of-type(3)",
26 {"scrollHeight": |clientHeight|, "scrollWidth": |clientWidth|},