fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// This test checks that using `.stab` attributes in `.docblock` elements doesn't 2// create scrollable paragraphs. 3go-to: "file://" + |DOC_PATH| + "/test_docs/index.html" 4// Needs the text to be display to check for scrollable content. 5show-text: true 6set-window-size: (786, 600) 7// Confirms that there 3 paragraphs. 8assert-count: (".top-doc .docblock p", 3) 9// Checking that there is no scrollable content. 10store-property: (".top-doc .docblock p:nth-of-type(1)", { 11 "clientHeight": clientHeight, 12 "clientWidth": clientWidth, 13}) 14assert-property: ( 15 ".top-doc .docblock p:nth-of-type(1)", 16 {"scrollHeight": |clientHeight|, "scrollWidth": |clientWidth|}, 17) 18store-property: (".top-doc .docblock p:nth-of-type(2)", { 19 "clientHeight": clientHeight, 20 "clientWidth": clientWidth, 21}) 22assert-property: ( 23 ".top-doc .docblock p:nth-of-type(2)", 24 {"scrollHeight": |clientHeight|, "scrollWidth": |clientWidth|}, 25) 26store-property: (".top-doc .docblock p:nth-of-type(3)", { 27 "clientHeight": clientHeight, 28 "clientWidth": clientWidth, 29}) 30assert-property: ( 31 ".top-doc .docblock p:nth-of-type(3)", 32 {"scrollHeight": |clientHeight|, "scrollWidth": |clientWidth|}, 33)