@@ -13,15 +13,15 @@ assert-css: ("#all-types", {"color": "rgb(53, 109, 164)"})
13
13
// We check that we have the crates list and that the "current" on is "test_docs".
14
14
assert-text: (".sidebar-elems .crate > ul > li > a.current", "test_docs")
15
15
// And we're also supposed to have the list of items in the current module.
16
- assert-text: (".sidebar-elems .items > ul > li:nth-child(1)", "Modules")
17
- assert-text: (".sidebar-elems .items > ul > li:nth-child(2)", "Macros")
18
- assert-text: (".sidebar-elems .items > ul > li:nth-child(3)", "Structs")
19
- assert-text: (".sidebar-elems .items > ul > li:nth-child(4)", "Enums")
20
- assert-text: (".sidebar-elems .items > ul > li:nth-child(5)", "Traits")
21
- assert-text: (".sidebar-elems .items > ul > li:nth-child(6)", "Functions")
22
- assert-text: (".sidebar-elems .items > ul > li:nth-child(7)", "Type Definitions")
23
- assert-text: (".sidebar-elems .items > ul > li:nth-child(8)", "Unions")
24
- assert-text: (".sidebar-elems .items > ul > li:nth-child(9)", "Keywords")
16
+ assert-text: (".sidebar-elems section ul > li:nth-child(1)", "Modules")
17
+ assert-text: (".sidebar-elems section ul > li:nth-child(2)", "Macros")
18
+ assert-text: (".sidebar-elems section ul > li:nth-child(3)", "Structs")
19
+ assert-text: (".sidebar-elems section ul > li:nth-child(4)", "Enums")
20
+ assert-text: (".sidebar-elems section ul > li:nth-child(5)", "Traits")
21
+ assert-text: (".sidebar-elems section ul > li:nth-child(6)", "Functions")
22
+ assert-text: (".sidebar-elems section ul > li:nth-child(7)", "Type Definitions")
23
+ assert-text: (".sidebar-elems section ul > li:nth-child(8)", "Unions")
24
+ assert-text: (".sidebar-elems section ul > li:nth-child(9)", "Keywords")
25
25
assert-text: ("#structs + .item-table .item-left > a", "Foo")
26
26
click: "#structs + .item-table .item-left > a"
27
27
@@ -30,7 +30,7 @@ assert-count: (".sidebar .location", 2)
30
30
// We check that there is no crate listed outside of the top level.
31
31
assert-false: ".sidebar-elems > .crate"
32
32
33
- click: ".sidebar-links a"
33
+ click: ".sidebar-elems section .block li > a"
34
34
assert-property-false: ("html", {"scrollTop": "0"})
35
35
36
36
click: ".sidebar h2.location a"
@@ -47,11 +47,11 @@ assert-text: (".sidebar > .location", "Crate lib2")
47
47
// We check that we have the crates list and that the "current" on is now "lib2".
48
48
assert-text: (".sidebar-elems .crate > ul > li > a.current", "lib2")
49
49
// We now go to the "foobar" function page.
50
- assert-text: (".sidebar-elems > .items > ul > li:nth-child(1)", "Modules")
51
- assert-text: (".sidebar-elems > .items > ul > li:nth-child(2)", "Structs")
52
- assert-text: (".sidebar-elems > .items > ul > li:nth-child(3)", "Traits")
53
- assert-text: (".sidebar-elems > .items > ul > li:nth-child(4)", "Functions")
54
- assert-text: (".sidebar-elems > .items > ul > li:nth-child(5)", "Type Definitions")
50
+ assert-text: (".sidebar-elems > section .block ul > li:nth-child(1)", "Modules")
51
+ assert-text: (".sidebar-elems > section .block ul > li:nth-child(2)", "Structs")
52
+ assert-text: (".sidebar-elems > section .block ul > li:nth-child(3)", "Traits")
53
+ assert-text: (".sidebar-elems > section .block ul > li:nth-child(4)", "Functions")
54
+ assert-text: (".sidebar-elems > section .block ul > li:nth-child(5)", "Type Definitions")
55
55
assert-text: ("#functions + .item-table .item-left > a", "foobar")
56
56
click: "#functions + .item-table .item-left > a"
57
57
@@ -72,12 +72,12 @@ goto: ./sub_module/sub_sub_module/index.html
72
72
assert-text: (".sidebar > .location", "Module sub_sub_module")
73
73
// We check that we don't have the crate list.
74
74
assert-false: ".sidebar-elems .crate"
75
- assert-text: (".sidebar-elems .items > ul > li:nth-child(1)", "Functions")
75
+ assert-text: (".sidebar-elems > section ul > li:nth-child(1)", "Functions")
76
76
assert-text: ("#functions + .item-table .item-left > a", "foo")
77
77
78
78
// Links to trait implementations in the sidebar should not wrap even if they are long.
79
79
goto: file://|DOC_PATH|/lib2/struct.HasALongTraitWithParams.html
80
- assert-property: (".sidebar-links a", {"offsetHeight": 29})
80
+ assert-property: (".sidebar-elems section .block li > a", {"offsetHeight": 29})
81
81
82
82
// Test that clicking on of the "In <module>" headings in the sidebar links to the
83
83
// appropriate anchor in index.html.
0 commit comments