@@ -12,7 +12,7 @@ assert-count: (".sidebar .location", 1)
1212assert-text: ("#all-types", "All Items")
1313assert-css: ("#all-types", {"color": "rgb(53, 109, 164)"})
1414// We check that we have the crates list and that the "current" on is "test_docs".
15- assert-text: (".sidebar-elems .crate > ul > li > a.current", "test_docs")
15+ assert-text: (".sidebar-elems ul .crate > li > a.current", "test_docs")
1616// And we're also supposed to have the list of items in the current module.
1717assert-text: (".sidebar-elems section ul > li:nth-child(1)", "Re-exports")
1818assert-text: (".sidebar-elems section ul > li:nth-child(2)", "Modules")
@@ -41,21 +41,21 @@ assert-property: ("html", {"scrollTop": "0"})
4141// We now go back to the crate page to click on the "lib2" crate link.
4242goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
4343assert-property: (".sidebar", {"clientWidth": "200"})
44- assert-css: (".sidebar-elems .crate > ul > li:first-child > a", {"color": "rgb(53, 109, 164)"})
45- click: ".sidebar-elems .crate > ul > li:first-child > a"
44+ assert-css: (".sidebar-elems ul .crate > li:first-child > a", {"color": "rgb(53, 109, 164)"})
45+ click: ".sidebar-elems ul .crate > li:first-child > a"
4646
4747// PAGE: lib2/index.html
4848goto: "file://" + |DOC_PATH| + "/lib2/index.html"
4949assert-property: (".sidebar", {"clientWidth": "200"})
5050assert-text: (".sidebar > .location", "Crate lib2")
5151// We check that we have the crates list and that the "current" on is now "lib2".
52- assert-text: (".sidebar-elems .crate > ul > li > a.current", "lib2")
52+ assert-text: (".sidebar-elems ul .crate > li > a.current", "lib2")
5353// We now go to the "foobar" function page.
54- assert-text: (".sidebar-elems > section .block ul > li:nth-child(1)", "Modules")
55- assert-text: (".sidebar-elems > section .block ul > li:nth-child(2)", "Structs")
56- assert-text: (".sidebar-elems > section .block ul > li:nth-child(3)", "Traits")
57- assert-text: (".sidebar-elems > section .block ul > li:nth-child(4)", "Functions")
58- assert-text: (".sidebar-elems > section .block ul > li:nth-child(5)", "Type Definitions")
54+ assert-text: (".sidebar-elems > section ul .block > li:nth-child(1)", "Modules")
55+ assert-text: (".sidebar-elems > section ul .block > li:nth-child(2)", "Structs")
56+ assert-text: (".sidebar-elems > section ul .block > li:nth-child(3)", "Traits")
57+ assert-text: (".sidebar-elems > section ul .block > li:nth-child(4)", "Functions")
58+ assert-text: (".sidebar-elems > section ul .block > li:nth-child(5)", "Type Definitions")
5959assert-text: ("#functions + .item-table .item-left > a", "foobar")
6060click: "#functions + .item-table .item-left > a"
6161
@@ -90,7 +90,7 @@ assert-property: (".sidebar-elems section .block li > a", {"offsetHeight": 29})
9090// appropriate anchor in index.html.
9191goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
9292assert-property: (".sidebar", {"clientWidth": "200"})
93- click: ". block.mod h3 a"
93+ click: "//ul[@class=' block mod']/preceding-sibling::h3/ a"
9494// PAGE: index.html
9595assert-css: ("#modules", {"background-color": "rgb(253, 255, 211)"})
9696
0 commit comments