@@ -12,7 +12,7 @@ assert-count: (".sidebar .location", 1)
12
12
assert-text: ("#all-types", "All Items")
13
13
assert-css: ("#all-types", {"color": "rgb(53, 109, 164)"})
14
14
// 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")
16
16
// And we're also supposed to have the list of items in the current module.
17
17
assert-text: (".sidebar-elems section ul > li:nth-child(1)", "Re-exports")
18
18
assert-text: (".sidebar-elems section ul > li:nth-child(2)", "Modules")
@@ -41,21 +41,21 @@ assert-property: ("html", {"scrollTop": "0"})
41
41
// We now go back to the crate page to click on the "lib2" crate link.
42
42
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
43
43
assert-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"
46
46
47
47
// PAGE: lib2/index.html
48
48
goto: "file://" + |DOC_PATH| + "/lib2/index.html"
49
49
assert-property: (".sidebar", {"clientWidth": "200"})
50
50
assert-text: (".sidebar > .location", "Crate lib2")
51
51
// 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")
53
53
// 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")
59
59
assert-text: ("#functions + .item-table .item-left > a", "foobar")
60
60
click: "#functions + .item-table .item-left > a"
61
61
@@ -90,7 +90,7 @@ assert-property: (".sidebar-elems section .block li > a", {"offsetHeight": 29})
90
90
// appropriate anchor in index.html.
91
91
goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
92
92
assert-property: (".sidebar", {"clientWidth": "200"})
93
- click: ". block.mod h3 a"
93
+ click: "//ul[@class=' block mod']/preceding-sibling::h3/ a"
94
94
// PAGE: index.html
95
95
assert-css: ("#modules", {"background-color": "rgb(253, 255, 211)"})
96
96
0 commit comments