Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5771)

Unified Diff: chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json

Issue 10835012: Extension Docs Server: Include a list of samples used in the api reference page. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: api_data_source is a factory Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..67d0a8ff9e35ff30c604d4df928c5d9f399ea6c5 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,160 +4,161 @@
"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",
+ "text": "TypeA",
"href": "tester.html#type-TypeA"
- },
- "optional": false,
- "properties": [],
+ },
+ "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",
+ "text": "TypeA",
"href": "tester.html#type-TypeA"
- },
- "optional": false,
- "properties": [],
+ },
+ "optional": false,
+ "properties": [],
"description": null
- },
- "optional": false,
- "properties": [],
+ },
+ "optional": false,
+ "properties": [],
"description": null
}
- ],
- "optional": false,
+ ],
+ "optional": false,
"description": null
}
- ],
+ ],
"description": "Gets stuff."
}
- ],
- "properties": [],
- "name": "tester",
+ ],
+ "name": "tester",
+ "events": [
+ {
+ "name": "EventA",
+ "parameters": [
+ {
+ "functions": [],
+ "name": "id",
+ "simple_type": "string",
+ "optional": false,
+ "properties": [],
+ "description": null
+ },
+ {
+ "functions": [],
+ "last": true,
+ "name": "bookmark",
+ "link": {
+ "text": "TypeA",
+ "href": "tester.html#type-TypeA"
+ },
+ "optional": false,
+ "properties": [],
+ "description": null
+ }
+ ],
+ "description": "A cool event."
+ }
+ ],
+ "samples": [],
+ "properties": [],
"types": [
{
+ "functions": [],
+ "name": "TypeA",
+ "simple_type": "object",
"properties": [
{
- "functions": [],
- "name": "b",
+ "functions": [],
+ "name": "b",
"array": {
- "functions": [],
- "name": "bElement",
+ "functions": [],
+ "name": "bElement",
"link": {
- "text": "TypeA",
+ "text": "TypeA",
"href": "tester.html#type-TypeA"
- },
- "optional": false,
- "properties": [],
+ },
+ "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",
- "parameters": [
- {
- "functions": [],
- "name": "id",
- "simple_type": "string",
- "optional": false,
- "properties": [],
- "description": null
- },
- {
- "functions": [],
- "last": true,
- "name": "bookmark",
- "link": {
- "text": "TypeA",
- "href": "tester.html#type-TypeA"
- },
- "optional": false,
- "properties": [],
- "description": null
- }
- ],
- "description": "A cool event."
- }
]
}

Powered by Google App Engine
This is Rietveld 408576698