@@ -25,24 +25,24 @@ call-function: (
25
25
"check-colors",
26
26
{
27
27
"theme": "ayu",
28
- "color": "rgb(197, 197, 197) ",
29
- "background_color": "rgb(20, 25, 31) ",
28
+ "color": "#c5c5c5 ",
29
+ "background_color": "#14191f ",
30
30
}
31
31
)
32
32
call-function: (
33
33
"check-colors",
34
34
{
35
35
"theme": "dark",
36
- "color": "rgb(221, 221, 221) ",
37
- "background_color": "rgb(80, 80, 80) ",
36
+ "color": "#ddd ",
37
+ "background_color": "#505050 ",
38
38
}
39
39
)
40
40
call-function: (
41
41
"check-colors",
42
42
{
43
43
"theme": "light",
44
- "color": "rgb(0, 0, 0) ",
45
- "background_color": "rgb(245, 245, 245) ",
44
+ "color": "black ",
45
+ "background_color": "#f5f5f5 ",
46
46
}
47
47
)
48
48
@@ -55,7 +55,7 @@ assert-text: (".sidebar > .location", "Crate test_docs")
55
55
assert-count: (".sidebar .location", 1)
56
56
assert-count: (".sidebar h2", 1)
57
57
assert-text: ("#all-types", "All Items")
58
- assert-css: ("#all-types", {"color": "rgb(53, 109, 164) "})
58
+ assert-css: ("#all-types", {"color": "#356da4 "})
59
59
// We check that we have the crates list and that the "current" on is "test_docs".
60
60
assert-text: (".sidebar-elems ul.crate > li > a.current", "test_docs")
61
61
// And we're also supposed to have the list of items in the current module.
@@ -88,7 +88,7 @@ assert-property: ("html", {"scrollTop": "0"})
88
88
// We now go back to the crate page to click on the "lib2" crate link.
89
89
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
90
90
assert-property: (".sidebar", {"clientWidth": "200"})
91
- assert-css: (".sidebar-elems ul.crate > li:first-child > a", {"color": "rgb(53, 109, 164) "})
91
+ assert-css: (".sidebar-elems ul.crate > li:first-child > a", {"color": "#356da4 "})
92
92
click: ".sidebar-elems ul.crate > li:first-child > a"
93
93
94
94
// PAGE: lib2/index.html
@@ -140,7 +140,7 @@ go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
140
140
assert-property: (".sidebar", {"clientWidth": "200"})
141
141
click: "//ul[@class='block mod']/preceding-sibling::h3/a"
142
142
// PAGE: index.html
143
- assert-css: ("#modules", {"background-color": "rgb(253, 255, 211) "})
143
+ assert-css: ("#modules", {"background-color": "#fdffd3 "})
144
144
145
145
// Finally, assert that the `[+]/[−]` toggle doesn't affect sidebar width.
146
146
click: "#toggle-all-docs"
0 commit comments