diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-01-03 23:51:20 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-04-18 20:59:08 +0200 |
| commit | 51de26cfd977edc7b0dc5450474a840359a79443 (patch) | |
| tree | 8fa0ad96312db3273a03baa22a50994ea9d45512 /src/test/rustdoc-js-std/parser-quote.js | |
| parent | bbcf1762ddd06a895b0bb235fa0718901dc73184 (diff) | |
| download | rust-51de26cfd977edc7b0dc5450474a840359a79443.tar.gz rust-51de26cfd977edc7b0dc5450474a840359a79443.zip | |
* If type filter is in quotes, throw an error.
* If there are generics, don't allow to have quotes.
Diffstat (limited to 'src/test/rustdoc-js-std/parser-quote.js')
| -rw-r--r-- | src/test/rustdoc-js-std/parser-quote.js | 49 |
1 files changed, 1 insertions, 48 deletions
diff --git a/src/test/rustdoc-js-std/parser-quote.js b/src/test/rustdoc-js-std/parser-quote.js index aa1b8d3dc64..1c59a3d50ee 100644 --- a/src/test/rustdoc-js-std/parser-quote.js +++ b/src/test/rustdoc-js-std/parser-quote.js @@ -1,4 +1,4 @@ -const QUERY = ['-> "p"', '"const": "p"', '("p")', '"p"<p>']; +const QUERY = ['-> "p"', '("p")']; const PARSED = [ { @@ -20,27 +20,6 @@ const PARSED = [ userQuery: "-> \"p\"", error: null, }, - // This one checks that if quotes are used on the type filter, they're - // simply ignored. - { - args: [], - elemName: null, - elems: [{ - name: "p", - fullPath: ["p"], - pathWithoutLast: [], - pathLast: "p", - generics: [], - }], - foundElems: 1, - id: "\"const\": \"p\"", - nameSplit: null, - original: "\"const\": \"p\"", - returned: [], - typeFilter: 17, - userQuery: "\"const\": \"p\"", - error: null, - }, { args: [{ name: "p", @@ -60,30 +39,4 @@ const PARSED = [ userQuery: "(\"p\")", error: null, }, - // This test checks that a literal item can still have generics. - { - args: [], - elemName: null, - elems: [{ - name: "p", - fullPath: ["p"], - pathWithoutLast: [], - pathLast: "p", - generics: [{ - name: "p", - fullPath: ["p"], - pathWithoutLast: [], - pathLast: "p", - generics: [], - }], - }], - foundElems: 1, - id: "\"p\"<p>", - nameSplit: null, - original: "\"p\"<p>", - returned: [], - typeFilter: -1, - userQuery: "\"p\"<p>", - error: null, - }, ]; |
