@@ -5,70 +5,70 @@ write: (".search-input", "Foo")
5
5
// To be SURE that the search will be run.
6
6
press-key: 'Enter'
7
7
// Waiting for the search results to appear...
8
- wait-for: "#titles "
9
- assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
10
- assert-text: ("#titles > button:nth-of-type(1)", "In Names", STARTS_WITH)
8
+ wait-for: "#search-tabs "
9
+ assert-attribute: ("#search-tabs > button:nth-of-type(1)", {"class": "selected"})
10
+ assert-text: ("#search-tabs > button:nth-of-type(1)", "In Names", STARTS_WITH)
11
11
assert: "input.search-input:focus"
12
12
// Use left-right keys
13
13
press-key: "ArrowDown"
14
14
assert: "#results > .search-results.active > a:nth-of-type(1):focus"
15
15
press-key: "ArrowRight"
16
- wait-for-attribute: ("#titles > button:nth-of-type(2)", {"class": "selected"})
16
+ wait-for-attribute: ("#search-tabs > button:nth-of-type(2)", {"class": "selected"})
17
17
press-key: "ArrowRight"
18
- wait-for-attribute: ("#titles > button:nth-of-type(3)", {"class": "selected"})
18
+ wait-for-attribute: ("#search-tabs > button:nth-of-type(3)", {"class": "selected"})
19
19
press-key: "ArrowRight"
20
- wait-for-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
20
+ wait-for-attribute: ("#search-tabs > button:nth-of-type(1)", {"class": "selected"})
21
21
press-key: "ArrowLeft"
22
- wait-for-attribute: ("#titles > button:nth-of-type(3)", {"class": "selected"})
22
+ wait-for-attribute: ("#search-tabs > button:nth-of-type(3)", {"class": "selected"})
23
23
24
24
// Now try search-by-return
25
25
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
26
26
write: (".search-input", "-> String")
27
27
// To be SURE that the search will be run.
28
28
press-key: 'Enter'
29
29
// Waiting for the search results to appear...
30
- wait-for: "#titles "
31
- assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
32
- assert-text: ("#titles > button:nth-of-type(1)", "In Function Return Types", STARTS_WITH)
30
+ wait-for: "#search-tabs "
31
+ assert-attribute: ("#search-tabs > button:nth-of-type(1)", {"class": "selected"})
32
+ assert-text: ("#search-tabs > button:nth-of-type(1)", "In Function Return Types", STARTS_WITH)
33
33
assert: "input.search-input:focus"
34
34
// Use left-right keys
35
35
press-key: "ArrowDown"
36
36
assert: "#results > .search-results.active > a:nth-of-type(1):focus"
37
37
press-key: "ArrowRight"
38
- wait-for-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
38
+ wait-for-attribute: ("#search-tabs > button:nth-of-type(1)", {"class": "selected"})
39
39
press-key: "ArrowRight"
40
- wait-for-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
40
+ wait-for-attribute: ("#search-tabs > button:nth-of-type(1)", {"class": "selected"})
41
41
press-key: "ArrowRight"
42
- wait-for-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
42
+ wait-for-attribute: ("#search-tabs > button:nth-of-type(1)", {"class": "selected"})
43
43
press-key: "ArrowLeft"
44
- wait-for-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
44
+ wait-for-attribute: ("#search-tabs > button:nth-of-type(1)", {"class": "selected"})
45
45
46
46
// Try with a search-by-return with no results
47
47
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
48
48
write: (".search-input", "-> Something")
49
49
// To be SURE that the search will be run.
50
50
press-key: 'Enter'
51
51
// Waiting for the search results to appear...
52
- wait-for: "#titles "
53
- assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
54
- assert-text: ("#titles > button:nth-of-type(1)", "In Function Return Types", STARTS_WITH)
52
+ wait-for: "#search-tabs "
53
+ assert-attribute: ("#search-tabs > button:nth-of-type(1)", {"class": "selected"})
54
+ assert-text: ("#search-tabs > button:nth-of-type(1)", "In Function Return Types", STARTS_WITH)
55
55
56
56
// Try with a search-by-parameter
57
57
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
58
58
write: (".search-input", "usize pattern")
59
59
// To be SURE that the search will be run.
60
60
press-key: 'Enter'
61
61
// Waiting for the search results to appear...
62
- wait-for: "#titles "
63
- assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
64
- assert-text: ("#titles > button:nth-of-type(1)", "In Function Parameters", STARTS_WITH)
62
+ wait-for: "#search-tabs "
63
+ assert-attribute: ("#search-tabs > button:nth-of-type(1)", {"class": "selected"})
64
+ assert-text: ("#search-tabs > button:nth-of-type(1)", "In Function Parameters", STARTS_WITH)
65
65
66
66
// Try with a search-by-parameter-and-return
67
67
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
68
68
write: (".search-input", "pattern -> str")
69
69
// To be SURE that the search will be run.
70
70
press-key: 'Enter'
71
71
// Waiting for the search results to appear...
72
- wait-for: "#titles "
73
- assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
74
- assert-text: ("#titles > button:nth-of-type(1)", "In Function Signatures", STARTS_WITH)
72
+ wait-for: "#search-tabs "
73
+ assert-attribute: ("#search-tabs > button:nth-of-type(1)", {"class": "selected"})
74
+ assert-text: ("#search-tabs > button:nth-of-type(1)", "In Function Signatures", STARTS_WITH)
0 commit comments