Skip to content

Commit 60c657f

Browse files
Improve search-result-display.goml test
1 parent f748aa5 commit 60c657f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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)