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

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

Issue 10577022: Extensions Docs Server: HandlebarDictGenerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor changes Created 8 years, 6 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
new file mode 100644
index 0000000000000000000000000000000000000000..f011b22e5511dfdf344fb07668f55a9084418a94
--- /dev/null
+++ b/chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json
@@ -0,0 +1,86 @@
+{
+ "functions": [
+ {
+ "callback": {
+ "name": "callback",
+ "parameters": [
+ {
+ "name": "results",
+ "type": "ARRAY",
+ "array": {
+ "name": "resultsElement",
+ "ref": "TypeA",
+ "type": "REF",
+ "optional": false,
+ "properties": [],
+ "description": null
+ },
+ "optional": false,
+ "properties": [],
+ "description": null
+ }
+ ]
+ },
+ "name": "get",
+ "parameters": [
+ {
+ "name": "a",
+ "type": "CHOICES",
+ "choices": [
+ {
+ "optional": true,
+ "properties": [],
+ "type": "STRING",
+ "name": "a",
+ "description": null
+ },
+ {
+ "name": "a",
+ "type": "ARRAY",
+ "array": {
+ "optional": false,
+ "properties": [],
+ "type": "STRING",
+ "name": "aElement",
+ "description": null
+ },
+ "optional": true,
+ "properties": [],
+ "description": null
+ }
+ ],
+ "optional": false,
+ "properties": [],
+ "description": "a param"
+ }
+ ],
+ "description": "Gets stuff."
+ }
+ ],
+ "name": "tester",
+ "types": [
+ {
+ "properties": [
+ {
+ "name": "b",
+ "type": "ARRAY",
+ "array": {
+ "name": "bElement",
+ "ref": "TypeA",
+ "type": "REF",
+ "optional": false,
+ "properties": [],
+ "description": null
+ },
+ "optional": true,
+ "properties": [],
+ "description": "List of TypeA."
+ }
+ ],
+ "functions": [],
+ "type": "OBJECT",
+ "name": "TypeA",
+ "description": "A cool thing."
+ }
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698