]> git.proxmox.com Git - rustc.git/blobdiff - tests/rustdoc-gui/toggle-docs-mobile.goml
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / rustdoc-gui / toggle-docs-mobile.goml
index 6ce24a81bb3bfc7338c1a8574ea870c0734c9bd3..b69aa6e30ca0b37475875820a490b99b857c7528 100644 (file)
@@ -1,7 +1,7 @@
 // Checks that the documentation toggles on mobile have the correct position, style and work
 // as expected.
-goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
-size: (433, 600)
+go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
+set-window-size: (433, 600)
 assert-attribute: (".top-doc", {"open": ""})
 click: (4, 270) // This is the position of the top doc comment toggle
 assert-attribute-false: (".top-doc", {"open": ""})
@@ -22,7 +22,7 @@ assert-position: (
 )
 
 // Now we do the same but with a little bigger width
-size: (600, 600)
+set-window-size: (600, 600)
 assert-attribute: (".top-doc", {"open": ""})
 click: (4, 270) // New Y position since all search elements are back on one line.
 assert-attribute-false: (".top-doc", {"open": ""})