about summary refs log tree commit diff
path: root/tests/rustdoc-js-std
AgeCommit message (Collapse)AuthorLines
2023-03-20rustdoc: add support for type filters in arguments and genericsMichael Howell-95/+142
This makes sense, since the search index has the information in it, and it's more useful for function signature searches since a function signature search's item type is, by definition, some type of function (there's more than one, but not very many).
2023-03-16Rollup merge of #108875 - notriddle:notriddle/return-trait, r=GuillaumeGomezMatthias Krüger-6/+17
rustdoc: fix type search for `Option` combinators
2023-03-10rustdoc: use restricted Damerau-Levenshtein distance for searchMichael Howell-0/+12
Based on https://github.com/rust-lang/rust/pull/108200, for the same rationale. > This replaces the existing Levenshtein algorithm with the > Damerau-Levenshtein algorithm. This means that "ab" to "ba" is one change > (a transposition) instead of two (a deletion and insertion). More > specifically, this is a restricted implementation, in that "ca" to "abc" > cannot be performed as "ca" → "ac" → "abc", as there is an insertion in the > middle of a transposition. I believe that errors like that are sufficiently > rare that it's not worth taking into account. Before this change, searching `prinltn!` listed `print!` first, followed by `println!`. With this change, `println!` matches more closely.
2023-03-07rustdoc: fix type search when more than one `where` clause appliesMichael Howell-6/+17
2023-03-04Rollup merge of #108723 - notriddle:notriddle/where-clause, r=GuillaumeGomezMatthias Krüger-0/+7
rustdoc: function signature search with traits in `where` clause ## Before ![image](https://user-images.githubusercontent.com/1593513/222873534-a640a72a-c654-4702-9f3b-175129d9591d.png) ## After ![image](https://user-images.githubusercontent.com/1593513/222873544-fdfc431d-2b65-4b56-bede-0302ea9f153a.png)
2023-03-04rustdoc: function signature search with traits in `where` clauseMichael Howell-0/+7
2023-03-03Add test for unclosed genericGuillaume Gomez-0/+10
2023-03-02Add GUI test for rustdoc search errors backgroundGuillaume Gomez-2/+2
2023-03-01Rollup merge of #108143 - notriddle:notriddle/filter-exclamation-macro, ↵Dylan DPC-19/+88
r=GuillaumeGomez rustdoc: search by macro when query ends with `!` Related to #96399 Note: the `never` type alias is tested in [`/tests/rustdoc-js-std/alias-3.js`](https://github.com/notriddle/rust/blob/08ad401633037cc226b3806a3c5f48c2f34703bf/tests/rustdoc-js-std/alias-3.js) ## Before ![image](https://user-images.githubusercontent.com/1593513/219504192-54cc0753-ff97-4a37-ad4a-8ae915181325.png) ## After ![image](https://user-images.githubusercontent.com/1593513/219504251-589a7e11-1e7b-4b7b-879d-1b564080017c.png)
2023-02-16rustdoc: search by macro when query ends with `!`Michael Howell-19/+88
Related to #96399
2023-02-16rustdoc: hide `reference` methods in search indexMichael Howell-0/+8
2023-01-24rustdoc: add test case based on #103357Michael Howell-0/+10
2023-01-21rustdoc: update test cases to match with stricter match criteriaMichael Howell-1/+0
2023-01-21rustdoc: compute maximum Levenshtein distance based on the queryMichael Howell-3/+0
The heuristic is pretty close to the name resolver. Fixes #103357
2023-01-14rustdoc: update search test casesMichael Howell-4/+5
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1549