fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB28 linesraw
1// Checks that the search tab results work correctly with function signature syntax
2// First, try a search-by-name
3go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
4write: (".search-input", "Foo")
5// To be SURE that the search will be run.
6press-key: 'Enter'
7// Waiting for the search results to appear...
8wait-for: "#search-tabs"
9
10// Now use the keyboard commands to switch to the third result.
11press-key: "ArrowDown"
12press-key: "ArrowDown"
13press-key: "ArrowDown"
14assert: ".search-results.active > a:focus:nth-of-type(3)"
15
16// Now switch to the second tab, then back to the first one, then arrow back up.
17press-key: "ArrowRight"
18assert: ".search-results.active:nth-of-type(2) > a:focus:nth-of-type(1)"
19press-key: "ArrowLeft"
20assert: ".search-results.active:nth-of-type(1) > a:focus:nth-of-type(3)"
21press-key: "ArrowUp"
22assert: ".search-results.active > a:focus:nth-of-type(2)"
23press-key: "ArrowUp"
24assert: ".search-results.active > a:focus:nth-of-type(1)"
25press-key: "ArrowUp"
26assert: ".search-input:focus"
27press-key: "ArrowDown"
28assert: ".search-results.active > a:focus:nth-of-type(1)"