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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Tests parsing the Properties interface.
6 namespace idl_properties {
7 interface Properties {
8 // Integer property.
9 [value=42] static long first();
10
11 // Double property.
12 [value=42.0] static double second();
13
14 // String property.
15 [value="hello world"] static DOMString third();
16
17 // 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.
18 static long fourth();
19 };
20 };
OLDNEW
« 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