Skip to content

Commit aaee83a

Browse files
authored
Rollup merge of #113191 - GuillaumeGomez:update-browser-ui-test, r=notriddle
Update browser-ui-test version and improve GUI test Few small fixes and added new commands which allow to compare elements size. r? `@notriddle`
2 parents 3179126 + 60c657f commit aaee83a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.16.7
1+
0.16.8

tests/rustdoc-gui/search-result-display.goml

+5-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ compare-elements-position-near: (
3838
".search-results .result-name .path",
3939
{"y": 2, "x": 0},
4040
)
41-
store-size: (".search-results .result-name", {"width": width, "height": height})
42-
store-size: (".search-results .result-name .path", {"width": sub_width, "height": sub_height})
43-
assert: |width| < |sub_width| + 8 && |width| > |sub_width| - 8
44-
assert: |height| < |sub_height| + 8 && |height| > |sub_height| - 8
41+
compare-elements-size-near: (
42+
".search-results .result-name",
43+
".search-results .result-name .path",
44+
{"width": 8, "height": 8},
45+
)
4546

4647
// Check that the crate filter `<select>` is correctly handled when it goes to next line.
4748
// To do so we need to update the length of one of its `<option>`.

0 commit comments

Comments
 (0)