Skip to content

Commit f42f357

Browse files
committed
rustdoc: update tests for generic parsing and correction
1 parent 6068850 commit f42f357

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/rustdoc-gui/search-corrections.goml

+9-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ assert-text: (
7575
// Now, generic correction plus error
7676
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
7777
// Intentionally wrong spelling of "NotableStructWithLongName"
78-
write: (".search-input", "NotableStructWithLongNamr<x>,y")
78+
write: (".search-input", "Foo<NotableStructWithLongNamr>,y")
7979
// To be SURE that the search will be run.
8080
press-key: 'Enter'
8181
// Waiting for the search results to appear...
@@ -89,6 +89,14 @@ assert-text: (
8989
"Type \"notablestructwithlongnamr\" not found and used as generic parameter. Consider searching for \"notablestructwithlongname\" instead."
9090
)
9191

92+
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
93+
// Intentionally wrong spelling of "NotableStructWithLongName"
94+
write: (".search-input", "generic:NotableStructWithLongNamr<x>,y")
95+
// To be SURE that the search will be run.
96+
press-key: 'Enter'
97+
// Waiting for the search results to appear...
98+
wait-for: "#search-tabs"
99+
92100
assert-css: (".error", {
93101
"display": "block"
94102
})

0 commit comments

Comments
 (0)