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

Unified Diff: tools/json_schema_compiler/test/simple_api.json

Issue 10701012: JSON Schema Compiler: Added event compilation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Reworked Create functions and lots of tests. 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: tools/json_schema_compiler/test/simple_api.json
diff --git a/tools/json_schema_compiler/test/simple_api.json b/tools/json_schema_compiler/test/simple_api.json
index 068432d44246da424964f0e53023d568fc1d35e7..82d77b8da60f75677c21ea29d4cbca45c2512579 100644
--- a/tools/json_schema_compiler/test/simple_api.json
+++ b/tools/json_schema_compiler/test/simple_api.json
@@ -122,6 +122,41 @@
}
]
}
+ ],
+ "events": [
+ {
+ "name": "onIntegerFired",
+ "type": "function",
+ "description": "Fired when an integer is ready.",
+ "parameters": [
+ {
+ "name": "someInteger",
+ "type": "integer"
+ }
+ ]
+ },
+ {
+ "name": "onStringFired",
+ "type": "function",
+ "description": "Fired when a string is ready.",
+ "parameters": [
+ {
+ "name": "someString",
+ "type": "string"
+ }
+ ]
+ },
+ {
+ "name": "onTestTypeFired",
+ "type": "function",
+ "description": "Fired when a TestType is ready.",
+ "parameters": [
+ {
+ "name": "someTestType",
+ "$ref": "TestType"
+ }
+ ]
+ }
]
}
]

Powered by Google App Engine
This is Rietveld 408576698