@@ -17,12 +17,11 @@ click: "#structs + table td > a"
17
17
18
18
// PAGE: struct.Foo.html
19
19
assert: (".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"
24
22
25
23
// PAGE: lib2/index.html
24
+ goto: file://|DOC_PATH|/lib2/index.html
26
25
assert: (".sidebar > .location", "Crate lib2")
27
26
// We check that we have the crates list and that the "current" on is now "lib2".
28
27
assert: (".sidebar-elems > .crate > ul > li > a.current", "lib2")
@@ -36,12 +35,12 @@ click: "#functions + table td > a"
36
35
// In items containing no items (like functions or constants) and in modules, we have one
37
36
// "location" elements.
38
37
assert: (".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"
41
40
goto: ./module/sub_module/sub_sub_module/index.html
42
41
43
42
assert: (".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"
46
45
assert: (".sidebar-elems > .items > ul > li:nth-child(1)", "Functions")
47
46
assert: ("#functions + table td > a", "foo")
0 commit comments