1
1
// This test check for headers text and background colors for the different themes.
2
- goto: file://|DOC_PATH|/test_docs/struct.Foo.html
2
+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.Foo.html"
3
3
4
4
// This is needed so that the text color is computed.
5
5
show-text: true
@@ -23,23 +23,23 @@ assert-css: (
23
23
ALL,
24
24
)
25
25
26
- goto: file://|DOC_PATH|/test_docs/struct.Foo.html#impl-Foo
26
+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.Foo.html#impl-Foo"
27
27
assert-css: (
28
28
"#impl-Foo",
29
29
{"color": "rgb(197, 197, 197)", "background-color": "rgba(255, 236, 164, 0.06)"},
30
30
)
31
31
32
- goto: file://|DOC_PATH|/test_docs/struct.Foo.html#method.must_use
32
+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.Foo.html#method.must_use"
33
33
assert-css: (
34
34
"#method\.must_use",
35
35
{"color": "rgb(197, 197, 197)", "background-color": "rgba(255, 236, 164, 0.06)"},
36
36
ALL,
37
37
)
38
38
39
- goto: file://|DOC_PATH|/test_docs/index.html
39
+ goto: " file://" + |DOC_PATH| + " /test_docs/index.html"
40
40
assert-css: (".small-section-header a", {"color": "rgb(197, 197, 197)"}, ALL)
41
41
42
- goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html
42
+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.HeavilyDocumentedStruct.html"
43
43
// We select headings (h2, h3, h...).
44
44
assert-css: (".docblock > :not(p) > a", {"color": "rgb(57, 175, 215)"}, ALL)
45
45
@@ -49,7 +49,7 @@ local-storage: {
49
49
"rustdoc-preferred-dark-theme": "dark",
50
50
"rustdoc-use-system-theme": "false",
51
51
}
52
- goto: file://|DOC_PATH|/test_docs/struct.Foo.html
52
+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.Foo.html"
53
53
54
54
assert-css: (
55
55
".impl",
@@ -62,31 +62,31 @@ assert-css: (
62
62
ALL,
63
63
)
64
64
65
- goto: file://|DOC_PATH|/test_docs/struct.Foo.html#impl-Foo
65
+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.Foo.html#impl-Foo"
66
66
assert-css: (
67
67
"#impl-Foo",
68
68
{"color": "rgb(221, 221, 221)", "background-color": "rgb(73, 74, 61)"},
69
69
)
70
70
71
- goto: file://|DOC_PATH|/test_docs/struct.Foo.html#method.must_use
71
+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.Foo.html#method.must_use"
72
72
assert-css: (
73
73
"#method\.must_use",
74
74
{"color": "rgb(221, 221, 221)", "background-color": "rgb(73, 74, 61)"},
75
75
ALL,
76
76
)
77
77
78
- goto: file://|DOC_PATH|/test_docs/index.html
78
+ goto: " file://" + |DOC_PATH| + " /test_docs/index.html"
79
79
assert-css: (".small-section-header a", {"color": "rgb(221, 221, 221)"}, ALL)
80
80
81
- goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html
81
+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.HeavilyDocumentedStruct.html"
82
82
// We select headings (h2, h3, h...).
83
83
assert-css: (".docblock > :not(p) > a", {"color": "rgb(210, 153, 29)"}, ALL)
84
84
85
85
// Light theme
86
86
local-storage: {"rustdoc-theme": "light", "rustdoc-use-system-theme": "false"}
87
87
reload:
88
88
89
- goto: file://|DOC_PATH|/test_docs/struct.Foo.html
89
+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.Foo.html"
90
90
91
91
assert-css: (
92
92
".impl",
@@ -99,19 +99,19 @@ assert-css: (
99
99
ALL,
100
100
)
101
101
102
- goto: file://|DOC_PATH|/test_docs/struct.Foo.html#impl-Foo
102
+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.Foo.html#impl-Foo"
103
103
assert-css: ("#impl-Foo", {"color": "rgb(0, 0, 0)", "background-color": "rgb(253, 255, 211)"})
104
104
105
- goto: file://|DOC_PATH|/test_docs/struct.Foo.html#method.must_use
105
+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.Foo.html#method.must_use"
106
106
assert-css: (
107
107
"#method\.must_use",
108
108
{"color": "rgb(0, 0, 0)", "background-color": "rgb(253, 255, 211)"},
109
109
ALL,
110
110
)
111
111
112
- goto: file://|DOC_PATH|/test_docs/index.html
112
+ goto: " file://" + |DOC_PATH| + " /test_docs/index.html"
113
113
assert-css: (".small-section-header a", {"color": "rgb(0, 0, 0)"}, ALL)
114
114
115
- goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html
115
+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.HeavilyDocumentedStruct.html"
116
116
// We select headings (h2, h3, h...).
117
117
assert-css: (".docblock > :not(p) > a", {"color": "rgb(56, 115, 173)"}, ALL)
0 commit comments