@@ -19,6 +19,9 @@ click: "#structs + table td > a"
19
19
assert: (".sidebar .location", 2)
20
20
// We check that there is no crate listed outside of the top level.
21
21
assert-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"
22
25
23
26
// PAGE: lib2/index.html
24
27
goto: file://|DOC_PATH|/lib2/index.html
@@ -35,10 +38,17 @@ click: "#functions + table td > a"
35
38
// In items containing no items (like functions or constants) and in modules, we have one
36
39
// "location" elements.
37
40
assert: (".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")
38
48
// We check that we don't have the crate list.
39
49
assert-false: ".sidebar-elems > .crate"
40
- goto: ./module/sub_module/sub_sub_module/index.html
41
50
51
+ goto: ./sub_module/sub_sub_module/index.html
42
52
assert: (".sidebar > .location", "Module sub_sub_module")
43
53
// We check that we don't have the crate list.
44
54
assert-false: ".sidebar-elems > .crate"
0 commit comments