summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-js/primitive.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-js/primitive.js')
-rw-r--r--tests/rustdoc-js/primitive.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/rustdoc-js/primitive.js b/tests/rustdoc-js/primitive.js
new file mode 100644
index 000000000..918f70999
--- /dev/null
+++ b/tests/rustdoc-js/primitive.js
@@ -0,0 +1,25 @@
+// exact-check
+
+const QUERY = [
+ "i32",
+ "str",
+ "TotoIsSomewhere",
+];
+
+const EXPECTED = [
+ {
+ 'in_args': [
+ { 'path': 'primitive', 'name': 'foo' },
+ ],
+ },
+ {
+ 'returned': [
+ { 'path': 'primitive', 'name': 'foo' },
+ ],
+ },
+ {
+ 'others': [],
+ 'in_args': [],
+ 'returned': [],
+ },
+];