2022-12-20 10:32:35 -07:00
|
|
|
// Check that the line number column has the correct layout.
|
|
|
|
goto: "file://" + |DOC_PATH| + "/scrape_examples/fn.test_many.html"
|
|
|
|
|
|
|
|
// Check that it's not zero.
|
|
|
|
assert-property-false: (
|
|
|
|
".more-scraped-examples .scraped-example .code-wrapper .src-line-numbers",
|
|
|
|
{"clientWidth": "0"}
|
|
|
|
)
|
|
|
|
|
|
|
|
// Check that examples with very long lines have the same width as ones that don't.
|
|
|
|
store-property: (
|
|
|
|
clientWidth,
|
2022-12-21 18:03:31 -07:00
|
|
|
".more-scraped-examples .scraped-example:nth-child(2) .code-wrapper .src-line-numbers",
|
2022-12-20 10:32:35 -07:00
|
|
|
"clientWidth"
|
|
|
|
)
|
|
|
|
|
|
|
|
assert-property: (
|
2022-12-21 18:03:31 -07:00
|
|
|
".more-scraped-examples .scraped-example:nth-child(3) .code-wrapper .src-line-numbers",
|
2022-12-20 10:32:35 -07:00
|
|
|
{"clientWidth": |clientWidth|}
|
|
|
|
)
|
|
|
|
|
|
|
|
assert-property: (
|
2022-12-21 18:03:31 -07:00
|
|
|
".more-scraped-examples .scraped-example:nth-child(4) .code-wrapper .src-line-numbers",
|
2022-12-20 10:32:35 -07:00
|
|
|
{"clientWidth": |clientWidth|}
|
|
|
|
)
|
|
|
|
|
|
|
|
assert-property: (
|
2022-12-21 18:03:31 -07:00
|
|
|
".more-scraped-examples .scraped-example:nth-child(5) .code-wrapper .src-line-numbers",
|
2022-12-20 10:32:35 -07:00
|
|
|
{"clientWidth": |clientWidth|}
|
|
|
|
)
|
|
|
|
|
|
|
|
assert-property: (
|
2022-12-21 18:03:31 -07:00
|
|
|
".more-scraped-examples .scraped-example:nth-child(6) .code-wrapper .src-line-numbers",
|
2022-12-20 10:32:35 -07:00
|
|
|
{"clientWidth": |clientWidth|}
|
|
|
|
)
|