fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
798 B13 linesraw
1// If we have a long `<code>`, we need to ensure that it'll be fully displayed on mobile, meaning
2// that it'll be on two lines.
3emulate: "iPhone 8" // it has the following size: (375, 667)
4go-to: "file://" + |DOC_PATH| + "/test_docs/long_code_block/index.html"
5// We now check that the block is on two lines:
6show-text: true // We need to enable text draw to be able to have the "real" size
7// Little explanations for this test: if the text wasn't displayed on two lines, it would take
8// around 20px (which is the font size).
9assert-property: (".docblock p > code", {"offsetHeight": "44"})
10
11// Same check, but where the long code block is also a link
12go-to: "file://" + |DOC_PATH| + "/test_docs/long_code_block_link/index.html"
13assert-property: (".docblock p > a > code", {"offsetHeight": "44"})