about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/primitive.js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-06-09 16:49:38 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-06-09 17:00:47 +0200
commit9803651ee84545f8913b6fe9e76c8bd13603bb6e (patch)
treeb142f6884326782d5ba7bd11757477615e320238 /tests/rustdoc-js-std/primitive.js
parent6b0c7c4f01d3e6c90d10847471c7a2256346dd3e (diff)
downloadrust-9803651ee84545f8913b6fe9e76c8bd13603bb6e.tar.gz
rust-9803651ee84545f8913b6fe9e76c8bd13603bb6e.zip
Update rustdoc-js* format
Diffstat (limited to 'tests/rustdoc-js-std/primitive.js')
-rw-r--r--tests/rustdoc-js-std/primitive.js17
1 files changed, 7 insertions, 10 deletions
diff --git a/tests/rustdoc-js-std/primitive.js b/tests/rustdoc-js-std/primitive.js
index e5690383e4f..737e429bf55 100644
--- a/tests/rustdoc-js-std/primitive.js
+++ b/tests/rustdoc-js-std/primitive.js
@@ -1,15 +1,6 @@
-const QUERY = [
-    'i8',
-    'u32',
-    'str',
-    'char',
-    'unit',
-    'tuple',
-    'fn',
-];
-
 const EXPECTED = [
     {
+        'query': 'i8',
         'others': [
             {
                 'path': 'std',
@@ -19,6 +10,7 @@ const EXPECTED = [
         ]
     },
     {
+        'query': 'u32',
         'others': [
             {
                 'path': 'std',
@@ -28,6 +20,7 @@ const EXPECTED = [
         ]
     },
     {
+        'query': 'str',
         'others': [
             {
                 'path': 'std',
@@ -37,6 +30,7 @@ const EXPECTED = [
         ]
     },
     {
+        'query': 'char',
         'others': [
             {
                 'path': 'std',
@@ -46,6 +40,7 @@ const EXPECTED = [
         ]
     },
     {
+        'query': 'unit',
         'others': [
             {
                 'path': 'std',
@@ -55,6 +50,7 @@ const EXPECTED = [
         ]
     },
     {
+        'query': 'tuple',
         'others': [
             {
                 'path': 'std',
@@ -64,6 +60,7 @@ const EXPECTED = [
         ]
     },
     {
+        'query': 'fn',
         'others': [
             {
                 'path': 'std',