about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-weird-queries.js
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-09-24 12:33:09 -0700
committerMichael Howell <michael@notriddle.com>2024-10-30 10:35:38 -0700
commit5c7e7dfe10acde559ad78a700dfefbfaf0ed8772 (patch)
tree9387dafcd4a03fa3d6a6dd6dab7aea8a9d79ceaf /tests/rustdoc-js-std/parser-weird-queries.js
parent2cc1c0c39a481be5a4498dbee4f89a479dabd9c9 (diff)
downloadrust-5c7e7dfe10acde559ad78a700dfefbfaf0ed8772.tar.gz
rust-5c7e7dfe10acde559ad78a700dfefbfaf0ed8772.zip
rustdoc-search: pass original names through AST
Diffstat (limited to 'tests/rustdoc-js-std/parser-weird-queries.js')
-rw-r--r--tests/rustdoc-js-std/parser-weird-queries.js18
1 files changed, 6 insertions, 12 deletions
diff --git a/tests/rustdoc-js-std/parser-weird-queries.js b/tests/rustdoc-js-std/parser-weird-queries.js
index 499b82a3469..828b0a7d9f6 100644
--- a/tests/rustdoc-js-std/parser-weird-queries.js
+++ b/tests/rustdoc-js-std/parser-weird-queries.js
@@ -15,9 +15,8 @@ const PARSED = [
             },
         ],
         foundElems: 1,
-        original: "a b",
-        returned: [],
         userQuery: "a b",
+        returned: [],
         error: null,
     },
     {
@@ -32,9 +31,8 @@ const PARSED = [
             },
         ],
         foundElems: 1,
-        original: "a   b",
-        returned: [],
         userQuery: "a   b",
+        returned: [],
         error: null,
     },
     {
@@ -56,36 +54,32 @@ const PARSED = [
             },
         ],
         foundElems: 2,
-        original: "aaa,a",
-        returned: [],
         userQuery: "aaa,a",
+        returned: [],
         error: null,
     },
     {
         query: ',,,,',
         elems: [],
         foundElems: 0,
-        original: ",,,,",
-        returned: [],
         userQuery: ",,,,",
+        returned: [],
         error: null,
     },
     {
         query: 'mod    :',
         elems: [],
         foundElems: 0,
-        original: 'mod    :',
-        returned: [],
         userQuery: 'mod    :',
+        returned: [],
         error: "Unexpected `:` (expected path after type filter `mod:`)",
     },
     {
         query: 'mod\t:',
         elems: [],
         foundElems: 0,
-        original: 'mod :',
-        returned: [],
         userQuery: 'mod :',
+        returned: [],
         error: "Unexpected `:` (expected path after type filter `mod:`)",
     },
 ];