11// This test is to ensure that the anchors (`§`) have the expected color and position.
2- goto: file://|DOC_PATH|/staged_api/struct.Foo.html
2+ goto: " file://" + |DOC_PATH| + " /staged_api/struct.Foo.html"
33
44// This is needed to ensure that the text color is computed.
55show-text: true
@@ -36,7 +36,7 @@ assert-css: (
3636 {"color": "rgb(56, 115, 173)", "text-decoration": "none solid rgb(56, 115, 173)"},
3737)
3838
39- goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html
39+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.HeavilyDocumentedStruct.html"
4040
4141assert-css: ("#top-doc-prose-title", {"color": "rgb(0, 0, 0)"})
4242
@@ -57,7 +57,7 @@ assert-css: ("#title-for-struct-impl-item-doc", {"margin-left": "0px"})
5757// We do the same checks with the dark theme now.
5858//
5959local-storage: {"rustdoc-theme": "dark", "rustdoc-use-system-theme": "false"}
60- goto: file://|DOC_PATH|/staged_api/struct.Foo.html
60+ goto: " file://" + |DOC_PATH| + " /staged_api/struct.Foo.html"
6161
6262assert-css: ("#toggle-all-docs", {"color": "rgb(221, 221, 221)"})
6363assert-css: (".fqn a:nth-of-type(1)", {"color": "rgb(221, 221, 221)"})
@@ -86,7 +86,7 @@ assert-css: (
8686 {"color": "rgb(210, 153, 29)", "text-decoration": "none solid rgb(210, 153, 29)"},
8787)
8888
89- goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html
89+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.HeavilyDocumentedStruct.html"
9090
9191assert-css: ("#top-doc-prose-title", {"color": "rgb(221, 221, 221)"})
9292
@@ -107,7 +107,7 @@ assert-css: ("#title-for-struct-impl-item-doc", {"margin-left": "0px"})
107107// We do the same checks with the ayu theme now.
108108//
109109local-storage: {"rustdoc-theme": "ayu", "rustdoc-use-system-theme": "false"}
110- goto: file://|DOC_PATH|/staged_api/struct.Foo.html
110+ goto: " file://" + |DOC_PATH| + " /staged_api/struct.Foo.html"
111111
112112assert-css: ("#toggle-all-docs", {"color": "rgb(197, 197, 197)"})
113113assert-css: (".fqn a:nth-of-type(1)", {"color": "rgb(255, 255, 255)"})
@@ -136,7 +136,7 @@ assert-css: (
136136 {"color": "rgb(57, 175, 215)", "text-decoration": "none solid rgb(57, 175, 215)"},
137137)
138138
139- goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html
139+ goto: " file://" + |DOC_PATH| + " /test_docs/struct.HeavilyDocumentedStruct.html"
140140
141141assert-css: ("#top-doc-prose-title", {"color": "rgb(255, 255, 255)"})
142142
0 commit comments