Skip to content

Commit 42add88

Browse files
committed
Auto merge of rust-lang#127010 - GuillaumeGomez:update-puppeteer, r=notriddle
Update browser-ui-test version to `0.18.0` Should help with rust-lang#126436. r? `@notriddle`
2 parents 9c3bc80 + 315be7d commit 42add88

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.17.2
1+
0.18.0

tests/rustdoc-gui/label-next-to-symbol.goml

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// These tests verify that labels like "UNIX" and "Deprecated" stay on the same line as their symbol.
22
// It also verifies the staggered layout on mobile.
3+
include: "utils.goml"
34
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
45

6+
call-function: ("switch-theme", {"theme": "light"})
7+
58
// Desktop view
69
set-window-size: (1080, 600)
710
assert: (".stab.deprecated")

tests/rustdoc-gui/sidebar-source-code-display.goml

+3-2
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,15 @@ click: "#sidebar-button"
141141
wait-for-css: (".src .sidebar > *", {"visibility": "hidden"})
142142
// We scroll to line 117 to change the scroll position.
143143
scroll-to: '//*[@id="117"]'
144-
assert-window-property: {"pageYOffset": "2516"}
144+
store-value: (y_offset, "2493")
145+
assert-window-property: {"pageYOffset": |y_offset|}
145146
// Expanding the sidebar...
146147
click: "#sidebar-button"
147148
wait-for-css: (".sidebar", {"left": "0px"})
148149
click: "#sidebar-button"
149150
wait-for-css: (".sidebar", {"left": "-1000px"})
150151
// The "scrollTop" property should be the same.
151-
assert-window-property: {"pageYOffset": "2516"}
152+
assert-window-property: {"pageYOffset": |y_offset|}
152153

153154
// We now check that opening the sidebar and clicking a link will close it.
154155
// The behavior here on mobile is different than the behavior on desktop,

0 commit comments

Comments
 (0)