mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
Rollup merge of #106295 - GuillaumeGomez:extend-scraped-examples-layout-test, r=notriddle
Extend scraped examples layout GUI test for position of buttons This is a regression test for https://github.com/rust-lang/rust/pull/106279. r? ````@notriddle````
This commit is contained in:
@@ -33,3 +33,17 @@ assert-property: (
|
||||
".more-scraped-examples .scraped-example:nth-child(6) .code-wrapper .src-line-numbers",
|
||||
{"clientWidth": |clientWidth|}
|
||||
)
|
||||
|
||||
// Check that for both mobile and desktop sizes, the buttons in scraped examples are displayed
|
||||
// correctly.
|
||||
|
||||
store-value: (offset_y, 4)
|
||||
|
||||
// First with desktop
|
||||
assert-position: (".scraped-example .code-wrapper", {"y": 255})
|
||||
assert-position: (".scraped-example .code-wrapper .prev", {"y": 255 + |offset_y|})
|
||||
|
||||
// Then with mobile
|
||||
size: (600, 600)
|
||||
assert-position: (".scraped-example .code-wrapper", {"y": 314})
|
||||
assert-position: (".scraped-example .code-wrapper .prev", {"y": 314 + |offset_y|})
|
||||
|
||||
Reference in New Issue
Block a user