about summary refs log tree commit diff
path: root/tests/rustdoc-js/trailing.js
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-11-17 08:07:16 -0700
committerMichael Howell <michael@notriddle.com>2024-11-17 08:07:16 -0700
commitfa2e214a439488e06c4a144a2b3e37409810d9f4 (patch)
tree09099a47027eea33308ccc460d1c9f8362c9fb10 /tests/rustdoc-js/trailing.js
parent1e0df74445a185fc97b7e806cd6c636eaded1326 (diff)
downloadrust-fa2e214a439488e06c4a144a2b3e37409810d9f4.tar.gz
rust-fa2e214a439488e06c4a144a2b3e37409810d9f4.zip
rustdoc-search: add standalone trailing `::` test
Follow up for #132569
Diffstat (limited to 'tests/rustdoc-js/trailing.js')
-rw-r--r--tests/rustdoc-js/trailing.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rustdoc-js/trailing.js b/tests/rustdoc-js/trailing.js
new file mode 100644
index 00000000000..df5dd22ca4e
--- /dev/null
+++ b/tests/rustdoc-js/trailing.js
@@ -0,0 +1,7 @@
+// exact-check
+const EXPECTED = {
+    'query': 'inner::',
+    'others': [
+        { 'path': 'trailing::inner', 'name': 'function' },
+    ],
+}