summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-js/search-short-types.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-js/search-short-types.js')
-rw-r--r--tests/rustdoc-js/search-short-types.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc-js/search-short-types.js b/tests/rustdoc-js/search-short-types.js
new file mode 100644
index 000000000..3b2f15a40
--- /dev/null
+++ b/tests/rustdoc-js/search-short-types.js
@@ -0,0 +1,9 @@
+const QUERY = 'P';
+
+const EXPECTED = {
+ 'others': [
+ { 'path': 'search_short_types', 'name': 'P' },
+ { 'path': 'search_short_types::VeryLongTypeName', 'name': 'p' },
+ { 'path': 'search_short_types', 'name': 'Pa' },
+ ],
+};