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

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

Issue 10108005: Make json_schema_compiler remove 'nocompile' nodes from JSON at the JSON level (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/json_schema_test.json
diff --git a/tools/json_schema_compiler/test/json_schema_test.json b/tools/json_schema_compiler/test/json_schema_test.json
new file mode 100644
index 0000000000000000000000000000000000000000..0ac91316dc5de02d1289fb4f35e9d87613873842
--- /dev/null
+++ b/tools/json_schema_compiler/test/json_schema_test.json
@@ -0,0 +1,101 @@
+[
+ {
+ "namespace": "compile",
+ "functions": [],
+ "types": {}
+ },
+
+ {
+ "namespace": "nocompile",
+ "nocompile": true,
+ "functions": [],
+ "types": {}
+ },
+
+ {
+ "namespace": "functions",
+ "functions": [
+ {
+ "id": "one",
+ "nocompile": true
+ },
+ {
+ "id": "two"
+ },
+ {
+ "id": "three",
+ "nocompile": true
+ },
+ {
+ "id": "four"
+ }
+ ],
+
+ "types": {
+ "one": { "key": "value" }
+ }
+ },
+
+ {
+ "namespace": "types",
+ "functions": [
+ { "id": "one" }
+ ],
+ "types": {
+ "one": {
+ "key": "value",
+ "nocompile": true
+ },
+ "two": {
+ "key": "value"
+ },
+ "three": {
+ "key": "value",
+ "nocompile": true
+ },
+ "four": {
+ "key": "value"
+ }
+ }
+ },
+
+ {
+ "namespace": "nested",
+ "properties": {
+ "sync": {
+ "functions": [
+ {
+ "id": "one",
+ "nocompile": true
+ },
+ {
+ "id": "two"
+ },
+ {
+ "id": "three",
+ "nocompile": true
+ },
+ {
+ "id": "four"
+ }
+ ],
+ "types": {
+ "one": {
+ "key": "value",
+ "nocompile": true
+ },
+ "two": {
+ "key": "value"
+ },
+ "three": {
+ "key": "value",
+ "nocompile": true
+ },
+ "four": {
+ "key": "value"
+ }
+ }
+ }
+ }
+ }
+]
« tools/json_schema_compiler/json_schema.py ('K') | « tools/json_schema_compiler/previewserver.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698