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

Unified Diff: tools/json_schema_compiler/test/idl_properties.idl

Issue 1051563002: Support JSON Schema properties with values in the JSON Schema Compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better factoring / testing Created 5 years, 9 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/idl_properties.idl
diff --git a/tools/json_schema_compiler/test/idl_properties.idl b/tools/json_schema_compiler/test/idl_properties.idl
new file mode 100644
index 0000000000000000000000000000000000000000..55016021b4d0273fc10ee92bf786cc9333b75f29
--- /dev/null
+++ b/tools/json_schema_compiler/test/idl_properties.idl
@@ -0,0 +1,20 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Tests parsing the Properties interface.
+namespace idl_properties {
+ interface Properties {
+ // Integer property.
+ [value=42] static long first();
+
+ // Double property.
+ [value=42.0] static double second();
+
+ // String property.
+ [value="hello world"] static DOMString third();
+
+ // Unvalued property.
Devlin 2015/04/01 22:46:20 Why do we want to allow this?
Devlin 2015/04/01 23:53:12 Nudge.
not at google - send to devlin 2015/04/02 00:10:33 You're still allowed properties without values (e.
+ static long fourth();
+ };
+};
« tools/json_schema_compiler/idl_schema.py ('K') | « tools/json_schema_compiler/idl_schema_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698