@@ -19,6 +19,9 @@ click: "#structs + table td > a"
1919assert: (".sidebar .location", 2)
2020// We check that there is no crate listed outside of the top level.
2121assert-false: ".sidebar-elems > .crate"
22+ // We now go back to the crate page to click on the "lib2" crate link.
23+ goto: file://|DOC_PATH|/test_docs/index.html
24+ click: ".sidebar-elems > .crate > ul > li:first-child > a"
2225
2326// PAGE: lib2/index.html
2427goto: file://|DOC_PATH|/lib2/index.html
@@ -35,10 +38,17 @@ click: "#functions + table td > a"
3538// In items containing no items (like functions or constants) and in modules, we have one
3639// "location" elements.
3740assert: (".sidebar .location", 1)
41+ // There is a "<br>" tag between "in" and "lib2", but it doesn't count as a space.
42+ assert: (".sidebar .sidebar-elems .location", "Other items inlib2")
43+ // We check that we don't have the crate list.
44+ assert-false: ".sidebar-elems > .crate"
45+
46+ goto: ./module/index.html
47+ assert: (".sidebar > .location", "Module module")
3848// We check that we don't have the crate list.
3949assert-false: ".sidebar-elems > .crate"
40- goto: ./module/sub_module/sub_sub_module/index.html
4150
51+ goto: ./sub_module/sub_sub_module/index.html
4252assert: (".sidebar > .location", "Module sub_sub_module")
4353// We check that we don't have the crate list.
4454assert-false: ".sidebar-elems > .crate"
0 commit comments