summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js-std
Commit message (Collapse)AuthorAgeFilesLines
* rustdoc-search: add support for nested genericsMichael Howell2023-04-141-2/+122
|
* rustdoc: add support for type filters in arguments and genericsMichael Howell2023-03-2010-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).
* Rollup merge of #108875 - notriddle:notriddle/return-trait, r=GuillaumeGomezMatthias Krüger2023-03-161-6/+17
|\ | | | | | | rustdoc: fix type search for `Option` combinators
| * rustdoc: fix type search when more than one `where` clause appliesMichael Howell2023-03-071-6/+17
| |
* | rustdoc: use restricted Damerau-Levenshtein distance for searchMichael Howell2023-03-101-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.
* Rollup merge of #108723 - notriddle:notriddle/where-clause, r=GuillaumeGomezMatthias Krüger2023-03-041-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)
| * rustdoc: function signature search with traits in `where` clauseMichael Howell2023-03-041-0/+7
| |
* | Add test for unclosed genericGuillaume Gomez2023-03-031-0/+10
|/
* Add GUI test for rustdoc search errors backgroundGuillaume Gomez2023-03-021-2/+2
|
* Rollup merge of #108143 - notriddle:notriddle/filter-exclamation-macro, ↵Dylan DPC2023-03-013-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)
| * rustdoc: search by macro when query ends with `!`Michael Howell2023-02-163-19/+88
| | | | | | | | Related to #96399
* | rustdoc: hide `reference` methods in search indexMichael Howell2023-02-161-0/+8
|/
* rustdoc: add test case based on #103357Michael Howell2023-01-241-0/+10
|
* rustdoc: update test cases to match with stricter match criteriaMichael Howell2023-01-211-1/+0
|
* rustdoc: compute maximum Levenshtein distance based on the queryMichael Howell2023-01-211-3/+0
| | | | | | The heuristic is pretty close to the name resolver. Fixes #103357
* rustdoc: update search test casesMichael Howell2023-01-143-4/+5
|
* Move /src/test to /testsAlbert Larsan2023-01-1136-0/+1549