summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-js/generics-multi-trait.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-js/generics-multi-trait.js')
-rw-r--r--tests/rustdoc-js/generics-multi-trait.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/rustdoc-js/generics-multi-trait.js b/tests/rustdoc-js/generics-multi-trait.js
new file mode 100644
index 000000000..e7fcea876
--- /dev/null
+++ b/tests/rustdoc-js/generics-multi-trait.js
@@ -0,0 +1,32 @@
+// exact-check
+
+const QUERY = [
+ 'Result<SomeTrait>',
+ 'Zzzzzzzzzzzzzzzzzz',
+ 'Nonononononononono',
+];
+
+const EXPECTED = [
+ // check one of the generic items
+ {
+ 'in_args': [
+ { 'path': 'generics_multi_trait', 'name': 'beta' },
+ ],
+ 'returned': [
+ { 'path': 'generics_multi_trait', 'name': 'bet' },
+ ],
+ },
+ {
+ 'in_args': [
+ { 'path': 'generics_multi_trait', 'name': 'beta' },
+ ],
+ 'returned': [
+ { 'path': 'generics_multi_trait', 'name': 'bet' },
+ ],
+ },
+ // ignore the name of the generic itself
+ {
+ 'in_args': [],
+ 'returned': [],
+ },
+];