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

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

Issue 9491002: json_schema_compiler: any, additionalProperties, functions on types (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove whitespace Created 8 years, 10 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/functionsOnTypes.json
diff --git a/tools/json_schema_compiler/test/functionsOnTypes.json b/tools/json_schema_compiler/test/functionsOnTypes.json
new file mode 100644
index 0000000000000000000000000000000000000000..31b37737ace8eadf426e7b1ee5d85525628fe0a9
--- /dev/null
+++ b/tools/json_schema_compiler/test/functionsOnTypes.json
@@ -0,0 +1,33 @@
+[
+ {
+ "namespace": "functionsOnTypes",
+ "types": [
+ {
+ "id": "ChromeSetting",
+ "type": "object",
+ "description": "An interface which allows access to a Chrome browser setting.",
+ "functions": [
+ {
+ "name": "get",
+ "type": "function",
+ "description": "Gets the value of a setting.",
+ "parameters": [
+ {
+ "name": "details",
+ "type": "object",
+ "description": "What setting to consider.",
+ "properties": {
+ "incognito": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Whether to return the setting that applies to the incognito session (default false)."
+ }
+ }
not at google - send to devlin 2012/02/29 03:06:30 would be better to test something that has a funct
calamity 2012/03/01 04:47:09 Done.
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+]

Powered by Google App Engine
This is Rietveld 408576698