Skip to content

Commit

Permalink
rustdoc: update tests for generic parsing and correction
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Sep 3, 2023
1 parent 6068850 commit f42f357
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/rustdoc-gui/search-corrections.goml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ assert-text: (
// Now, generic correction plus error
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
// Intentionally wrong spelling of "NotableStructWithLongName"
write: (".search-input", "NotableStructWithLongNamr<x>,y")
write: (".search-input", "Foo<NotableStructWithLongNamr>,y")
// To be SURE that the search will be run.
press-key: 'Enter'
// Waiting for the search results to appear...
Expand All @@ -89,6 +89,14 @@ assert-text: (
"Type \"notablestructwithlongnamr\" not found and used as generic parameter. Consider searching for \"notablestructwithlongname\" instead."
)

go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
// Intentionally wrong spelling of "NotableStructWithLongName"
write: (".search-input", "generic:NotableStructWithLongNamr<x>,y")
// To be SURE that the search will be run.
press-key: 'Enter'
// Waiting for the search results to appear...
wait-for: "#search-tabs"

assert-css: (".error", {
"display": "block"
})
Expand Down

0 comments on commit f42f357

Please sign in to comment.