@@ -13,15 +13,15 @@ assert-css: ("#all-types", {"color": "rgb(53, 109, 164)"})
1313// We check that we have the crates list and that the "current" on is "test_docs".
1414assert-text: (".sidebar-elems .crate > ul > li > a.current", "test_docs")
1515// 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")
2525assert-text: ("#structs + .item-table .item-left > a", "Foo")
2626click: "#structs + .item-table .item-left > a"
2727
@@ -30,7 +30,7 @@ assert-count: (".sidebar .location", 2)
3030// We check that there is no crate listed outside of the top level.
3131assert-false: ".sidebar-elems > .crate"
3232
33- click: ".sidebar-links  a"
33+ click: ".sidebar-elems section .block li >  a"
3434assert-property-false: ("html", {"scrollTop": "0"})
3535
3636click: ".sidebar h2.location a"
@@ -47,11 +47,11 @@ assert-text: (".sidebar > .location", "Crate lib2")
4747// We check that we have the crates list and that the "current" on is now "lib2".
4848assert-text: (".sidebar-elems .crate > ul > li > a.current", "lib2")
4949// 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")
5555assert-text: ("#functions + .item-table .item-left > a", "foobar")
5656click: "#functions + .item-table .item-left > a"
5757
@@ -72,12 +72,12 @@ goto: ./sub_module/sub_sub_module/index.html
7272assert-text: (".sidebar > .location", "Module sub_sub_module")
7373// We check that we don't have the crate list.
7474assert-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")
7676assert-text: ("#functions + .item-table .item-left > a", "foo")
7777
7878// Links to trait implementations in the sidebar should not wrap even if they are long.
7979goto: 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})
8181
8282// Test that clicking on of the "In <module>" headings in the sidebar links to the
8383// appropriate anchor in index.html.
0 commit comments