1 // Check that the line number column has the correct layout.
2 goto: "file://" + |DOC_PATH| + "/scrape_examples/fn.test_many.html"
4 // Check that it's not zero.
5 assert-property-false: (
6 ".more-scraped-examples .scraped-example .code-wrapper .src-line-numbers",
10 // Check that examples with very long lines have the same width as ones that don't.
13 ".more-scraped-examples .scraped-example:nth-child(2) .code-wrapper .src-line-numbers",
18 ".more-scraped-examples .scraped-example:nth-child(3) .code-wrapper .src-line-numbers",
19 {"clientWidth": |clientWidth|}
23 ".more-scraped-examples .scraped-example:nth-child(4) .code-wrapper .src-line-numbers",
24 {"clientWidth": |clientWidth|}
28 ".more-scraped-examples .scraped-example:nth-child(5) .code-wrapper .src-line-numbers",
29 {"clientWidth": |clientWidth|}
33 ".more-scraped-examples .scraped-example:nth-child(6) .code-wrapper .src-line-numbers",
34 {"clientWidth": |clientWidth|}
37 // Check that for both mobile and desktop sizes, the buttons in scraped examples are displayed
40 store-value: (offset_y, 4)
43 assert-position: (".scraped-example .code-wrapper", {"y": 255})
44 assert-position: (".scraped-example .code-wrapper .prev", {"y": 255 + |offset_y|})
48 assert-position: (".scraped-example .code-wrapper", {"y": 314})
49 assert-position: (".scraped-example .code-wrapper .prev", {"y": 314 + |offset_y|})