Skip to content

Commit 709e9de

Browse files
committed
rustdoc: add test case for pointer cursor
1 parent 32c7523 commit 709e9de

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/test/rustdoc-gui/cursor.goml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// This test ensures that several clickable items actually have the pointer cursor.
2+
goto: "file://" + |DOC_PATH| + "/lib2/struct.Foo.html"
3+
4+
// the `[+]/[-]` button
5+
assert-css: ("#toggle-all-docs", {"cursor": "pointer"})
6+
7+
// the button next to the path header
8+
assert-css: ("#copy-path", {"cursor": "pointer"})
9+
10+
// the search tabs
11+
write: (".search-input", "Foo")
12+
// To be SURE that the search will be run.
13+
press-key: 'Enter'
14+
// Waiting for the search results to appear...
15+
wait-for: "#titles"
16+
assert-css: ("#titles > button", {"cursor": "pointer"})
17+
18+
// mobile sidebar toggle button
19+
size: (500, 700)
20+
assert-css: (".sidebar-menu-toggle", {"cursor": "pointer"})
21+
22+
// the sidebar toggle button on the source code pages
23+
goto: "file://" + |DOC_PATH| + "/src/lib2/lib.rs.html"
24+
assert-css: ("#sidebar-toggle > button", {"cursor": "pointer"})

0 commit comments

Comments
 (0)