mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
rustdoc: update tests for generic parsing and correction
This commit is contained in:
parent
6068850008
commit
f42f357a73
@ -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...
|
||||
@ -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"
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user