summaryrefslogtreecommitdiff
path: root/tests/rustdoc-gui/scrape-examples-layout.goml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-gui/scrape-examples-layout.goml')
-rw-r--r--tests/rustdoc-gui/scrape-examples-layout.goml7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/rustdoc-gui/scrape-examples-layout.goml b/tests/rustdoc-gui/scrape-examples-layout.goml
index 160056d6d05..4fc1c1ac065 100644
--- a/tests/rustdoc-gui/scrape-examples-layout.goml
+++ b/tests/rustdoc-gui/scrape-examples-layout.goml
@@ -9,9 +9,8 @@ assert-property-false: (
// Check that examples with very long lines have the same width as ones that don't.
store-property: (
- clientWidth,
".more-scraped-examples .scraped-example:nth-child(2) .code-wrapper .src-line-numbers",
- "clientWidth"
+ {"clientWidth": clientWidth},
)
assert-property: (
@@ -40,8 +39,8 @@ assert-property: (
store-value: (offset_y, 4)
// First with desktop
-assert-position: (".scraped-example .code-wrapper", {"y": 253})
-assert-position: (".scraped-example .code-wrapper .prev", {"y": 253 + |offset_y|})
+assert-position: (".scraped-example .code-wrapper", {"y": 226})
+assert-position: (".scraped-example .code-wrapper .prev", {"y": 226 + |offset_y|})
// Then with mobile
set-window-size: (600, 600)