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. |
+ static long fourth(); |
+ }; |
+}; |