@@ -17,12 +17,11 @@ click: "#structs + table td > a"
1717
1818// PAGE: struct.Foo.html
1919assert: (".sidebar .location", 2)
20- // We check that we have the crates list and that the "current" on is still "test_docs".
21- assert: (".sidebar-elems > .crate > ul > li > a.current", "test_docs")
22- // We now move to the other crate to check if its submodules have the correct sidebar elements too.
23- click: ".sidebar-elems > .crate > ul > li:first-child > a"
20+ // We check that there is no crate listed outside of the top level.
21+ assert-false: ".sidebar-elems > .crate"
2422
2523// PAGE: lib2/index.html
24+ goto: file://|DOC_PATH|/lib2/index.html
2625assert: (".sidebar > .location", "Crate lib2")
2726// We check that we have the crates list and that the "current" on is now "lib2".
2827assert: (".sidebar-elems > .crate > ul > li > a.current", "lib2")
@@ -36,12 +35,12 @@ click: "#functions + table td > a"
3635// In items containing no items (like functions or constants) and in modules, we have one
3736// "location" elements.
3837assert: (".sidebar .location", 1)
39- // We check that we still have the crates list and that the "current" on is still "lib2" .
40- assert: ( ".sidebar-elems > .crate > ul > li > a.current", "lib2")
38+ // We check that we don't have the crate list.
39+ assert-false: ".sidebar-elems > .crate"
4140goto: ./module/sub_module/sub_sub_module/index.html
4241
4342assert: (".sidebar > .location", "Module sub_sub_module")
44- assert: (".sidebar-elems > .crate > ul > li:nth-child(2) > a", "test_docs")
45- assert: ( ".sidebar-elems > .crate > ul > li:nth-child(2) > a", "href", "../../../../test_docs/index.html")
43+ // We check that we don't have the crate list.
44+ assert-false: ".sidebar-elems > .crate"
4645assert: (".sidebar-elems > .items > ul > li:nth-child(1)", "Functions")
4746assert: ("#functions + table td > a", "foo")
0 commit comments