Skip to content

Commit

Permalink
The height of the copy-path icon was removed by 4 so updating GUI tes…
Browse files Browse the repository at this point in the history
…ts accordingly
  • Loading branch information
GuillaumeGomez committed Apr 16, 2024
1 parent bd42df6 commit 8a69956
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/rustdoc-gui/item-info.goml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ store-position: (
{"x": second_line_x, "y": second_line_y},
)
assert: |first_line_x| != |second_line_x| && |first_line_x| == 516 && |second_line_x| == 272
assert: |first_line_y| != |second_line_y| && |first_line_y| == 688 && |second_line_y| == 711
assert: |first_line_y| != |second_line_y| && |first_line_y| == 684 && |second_line_y| == 707

// Now we ensure that they're not rendered on the same line.
set-window-size: (1100, 800)
Expand Down
4 changes: 2 additions & 2 deletions tests/rustdoc-gui/scrape-examples-layout.goml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ assert-property: (
store-value: (offset_y, 4)

// First with desktop
assert-position: (".scraped-example .code-wrapper", {"y": 226})
assert-position: (".scraped-example .code-wrapper .prev", {"y": 226 + |offset_y|})
assert-position: (".scraped-example .code-wrapper", {"y": 222})
assert-position: (".scraped-example .code-wrapper .prev", {"y": 222 + |offset_y|})

// Then with mobile
set-window-size: (600, 600)
Expand Down

0 comments on commit 8a69956

Please sign in to comment.