We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 690f0f7 + 87bc29d commit 14ff27fCopy full SHA for 14ff27f
src/test/rustdoc-gui/scrape-examples-layout.goml
@@ -33,3 +33,17 @@ assert-property: (
33
".more-scraped-examples .scraped-example:nth-child(6) .code-wrapper .src-line-numbers",
34
{"clientWidth": |clientWidth|}
35
)
36
+
37
+// Check that for both mobile and desktop sizes, the buttons in scraped examples are displayed
38
+// correctly.
39
40
+store-value: (offset_y, 4)
41
42
+// First with desktop
43
+assert-position: (".scraped-example .code-wrapper", {"y": 255})
44
+assert-position: (".scraped-example .code-wrapper .prev", {"y": 255 + |offset_y|})
45
46
+// Then with mobile
47
+size: (600, 600)
48
+assert-position: (".scraped-example .code-wrapper", {"y": 314})
49
+assert-position: (".scraped-example .code-wrapper .prev", {"y": 314 + |offset_y|})
0 commit comments