Chromium Code Reviews| Index: chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json |
| diff --git a/chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json b/chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json |
| index 30cd8629d2f560ed25563ea00b6b2ac86c9820d2..6c91188aafe4bd79e53f55449a680c66ffde3f3b 100644 |
| --- a/chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json |
| +++ b/chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json |
| @@ -4,159 +4,159 @@ |
| "callback": { |
| "simple_type": { |
| "simple_type": "function" |
| - }, |
| - "last": true, |
| - "name": "callback", |
| + }, |
| + "last": true, |
| + "name": "callback", |
| "parameters": [ |
| { |
| - "functions": [], |
| - "last": true, |
| - "name": "results", |
| + "functions": [], |
| + "last": true, |
| + "name": "results", |
| "array": { |
| - "functions": [], |
| - "name": "resultsElement", |
| + "functions": [], |
| + "name": "resultsElement", |
| "link": { |
| - "text": "TypeA", |
| - "href": "tester.html#type-TypeA" |
| - }, |
| - "optional": false, |
| - "properties": [], |
| + "text": "TypeA", |
| + "href": "#type-TypeA" |
| + }, |
| + "optional": false, |
| + "properties": [], |
| "description": null |
| - }, |
| - "optional": false, |
| - "properties": [], |
| + }, |
| + "optional": false, |
| + "properties": [], |
| "description": null |
| } |
| - ], |
| - "optional": false, |
| + ], |
| + "optional": false, |
| "description": null |
| - }, |
| - "returns": null, |
| - "name": "get", |
| + }, |
| + "returns": null, |
| + "name": "get", |
| "parameters": [ |
| { |
| - "functions": [], |
| - "name": "a", |
| + "functions": [], |
| + "name": "a", |
| "choices": [ |
| { |
| - "functions": [], |
| - "name": "a", |
| - "simple_type": "string", |
| - "optional": true, |
| - "properties": [], |
| + "functions": [], |
| + "name": "a", |
| + "simple_type": "string", |
| + "optional": true, |
| + "properties": [], |
| "description": null |
| - }, |
| + }, |
| { |
| - "functions": [], |
| - "last": true, |
| - "name": "a", |
| + "functions": [], |
| + "last": true, |
| + "name": "a", |
| "array": { |
| - "functions": [], |
| - "name": "aElement", |
| - "simple_type": "string", |
| - "optional": false, |
| - "properties": [], |
| + "functions": [], |
| + "name": "aElement", |
| + "simple_type": "string", |
| + "optional": false, |
| + "properties": [], |
| "description": null |
| - }, |
| - "optional": true, |
| - "properties": [], |
| + }, |
| + "optional": true, |
| + "properties": [], |
| "description": null |
| } |
| - ], |
| - "optional": false, |
| - "properties": [], |
| + ], |
| + "optional": false, |
| + "properties": [], |
| "description": "a param" |
| - }, |
| + }, |
| { |
| "simple_type": { |
| "simple_type": "function" |
| - }, |
| - "last": true, |
| - "name": "callback", |
| + }, |
| + "last": true, |
| + "name": "callback", |
| "parameters": [ |
| { |
| - "functions": [], |
| - "last": true, |
| - "name": "results", |
| + "functions": [], |
| + "last": true, |
| + "name": "results", |
| "array": { |
| - "functions": [], |
| - "name": "resultsElement", |
| + "functions": [], |
| + "name": "resultsElement", |
| "link": { |
| - "text": "TypeA", |
| - "href": "tester.html#type-TypeA" |
| - }, |
| - "optional": false, |
| - "properties": [], |
| + "text": "TypeA", |
| + "href": "#type-TypeA" |
| + }, |
| + "optional": false, |
| + "properties": [], |
| "description": null |
| - }, |
| - "optional": false, |
| - "properties": [], |
| + }, |
| + "optional": false, |
| + "properties": [], |
| "description": null |
| } |
| - ], |
| - "optional": false, |
| + ], |
| + "optional": false, |
| "description": null |
| } |
| - ], |
| + ], |
| "description": "Gets stuff." |
| } |
| - ], |
|
not at google - send to devlin
2012/07/26 03:12:27
oh wow how did all of this happen...
|
| - "properties": [], |
| - "name": "tester", |
| + ], |
| + "properties": [], |
| + "name": "tester", |
| "types": [ |
| { |
| + "functions": [], |
| + "name": "TypeA", |
| + "simple_type": "object", |
| "properties": [ |
| { |
| - "functions": [], |
| - "name": "b", |
| + "functions": [], |
| + "name": "b", |
| "array": { |
| - "functions": [], |
| - "name": "bElement", |
| + "functions": [], |
| + "name": "bElement", |
| "link": { |
| - "text": "TypeA", |
| - "href": "tester.html#type-TypeA" |
| - }, |
| - "optional": false, |
| - "properties": [], |
| + "text": "TypeA", |
| + "href": "#type-TypeA" |
| + }, |
| + "optional": false, |
| + "properties": [], |
| "description": null |
| - }, |
| - "optional": true, |
| - "properties": [], |
| + }, |
| + "optional": true, |
| + "properties": [], |
| "description": "List of TypeA." |
| } |
| - ], |
| + ], |
| "events": [], |
| - "functions": [], |
| - "name": "TypeA", |
| - "simple_type": "object", |
| "description": "A cool thing." |
| } |
| - ], |
| + ], |
| "events": [ |
| { |
| - "name": "EventA", |
| + "name": "EventA", |
| "parameters": [ |
| { |
| - "functions": [], |
| - "name": "id", |
| - "simple_type": "string", |
| - "optional": false, |
| - "properties": [], |
| + "functions": [], |
| + "name": "id", |
| + "simple_type": "string", |
| + "optional": false, |
| + "properties": [], |
| "description": null |
| - }, |
| + }, |
| { |
| - "functions": [], |
| - "last": true, |
| - "name": "bookmark", |
| + "functions": [], |
| + "last": true, |
| + "name": "bookmark", |
| "link": { |
| - "text": "TypeA", |
| - "href": "tester.html#type-TypeA" |
| - }, |
| - "optional": false, |
| - "properties": [], |
| + "text": "TypeA", |
| + "href": "#type-TypeA" |
| + }, |
| + "optional": false, |
| + "properties": [], |
| "description": null |
| } |
| - ], |
| + ], |
| "description": "A cool event." |
| } |
| ] |