about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-01 00:35:07 +0200
committerGitHub <noreply@github.com>2023-07-01 00:35:07 +0200
commit626e1ea63c31d50e4177ca87d4e30bff0109c190 (patch)
tree849625442a28f1f29b4c9ea25daf94a4f43254d7
parent00efc94a6c206ca294cb5eae988c49f5c12733a4 (diff)
parent60c657f73a1a8596299fd205b98bdc9cf6392f1d (diff)
downloadrust-626e1ea63c31d50e4177ca87d4e30bff0109c190.tar.gz
rust-626e1ea63c31d50e4177ca87d4e30bff0109c190.zip
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``
-rw-r--r--src/ci/docker/host-x86_64/x86_64-gnu-tools/browser-ui-test.version2
-rw-r--r--tests/rustdoc-gui/search-result-display.goml9
2 files changed, 6 insertions, 5 deletions
diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-tools/browser-ui-test.version b/src/ci/docker/host-x86_64/x86_64-gnu-tools/browser-ui-test.version
index 75aa0c2b2a2..b31629ad605 100644
--- a/src/ci/docker/host-x86_64/x86_64-gnu-tools/browser-ui-test.version
+++ b/src/ci/docker/host-x86_64/x86_64-gnu-tools/browser-ui-test.version
@@ -1 +1 @@
-0.16.7
\ No newline at end of file
+0.16.8
\ No newline at end of file
diff --git a/tests/rustdoc-gui/search-result-display.goml b/tests/rustdoc-gui/search-result-display.goml
index f4c0e3eb047..6ce13b8c3d3 100644
--- a/tests/rustdoc-gui/search-result-display.goml
+++ b/tests/rustdoc-gui/search-result-display.goml
@@ -38,10 +38,11 @@ compare-elements-position-near: (
     ".search-results .result-name .path",
     {"y": 2, "x": 0},
 )
-store-size: (".search-results .result-name", {"width": width, "height": height})
-store-size: (".search-results .result-name .path", {"width": sub_width, "height": sub_height})
-assert: |width| < |sub_width| + 8 && |width| > |sub_width| - 8
-assert: |height| < |sub_height| + 8 && |height| > |sub_height| - 8
+compare-elements-size-near: (
+    ".search-results .result-name",
+    ".search-results .result-name .path",
+    {"width": 8, "height": 8},
+)
 
 // Check that the crate filter `<select>` is correctly handled when it goes to next line.
 // To do so we need to update the length of one of its `<option>`.