about summary refs log tree commit diff
path: root/tests/rustdoc-js/full-path-function.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-js/full-path-function.js')
-rw-r--r--tests/rustdoc-js/full-path-function.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/rustdoc-js/full-path-function.js b/tests/rustdoc-js/full-path-function.js
new file mode 100644
index 00000000000..9d3c3a4506c
--- /dev/null
+++ b/tests/rustdoc-js/full-path-function.js
@@ -0,0 +1,25 @@
+// exact-check
+
+const EXPECTED = [
+    {
+        'query': 'sac -> usize',
+        'others': [
+            { 'path': 'full_path_function::b::Sac', 'name': 'bar' },
+            { 'path': 'full_path_function::b::Sac', 'name': 'len' },
+            { 'path': 'full_path_function::sac::Sac', 'name': 'len' },
+        ],
+    },
+    {
+        'query': 'b::sac -> usize',
+        'others': [
+            { 'path': 'full_path_function::b::Sac', 'name': 'bar' },
+            { 'path': 'full_path_function::b::Sac', 'name': 'len' },
+        ],
+    },
+    {
+        'query': 'b::sac -> u32',
+        'others': [
+            { 'path': 'full_path_function::b::Sac', 'name': 'bar2' },
+        ],
+    },
+];