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

Side by Side Diff: tools/json_schema_compiler/test/idl_basics.idl

Issue 11826020: IDL schema compiler: Fixed pseudo-random order (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Incorporate upstream changes. Created 7 years, 11 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Tests a variety of basic API definition features. 5 // Tests a variety of basic API definition features.
6 6
7 [internal] namespace idl_basics { 7 [internal] namespace idl_basics {
8 // Enum description 8 // Enum description
9 enum EnumType { 9 enum EnumType {
10 name1, 10 name1,
11 name2 11 name2
12 }; 12 };
13 13
14 dictionary MyType1 { 14 dictionary MyType1 {
15 // This comment tests "double-quotes". 15 // This comment tests "double-quotes".
16 [legalValues=(1,2)] long x; 16 [legalValues=(1,2)] long x;
17 DOMString y; 17 DOMString y;
18 DOMString z;
19 DOMString a;
20 DOMString b;
21 DOMString c;
18 }; 22 };
19 23
20 dictionary MyType2 { 24 dictionary MyType2 {
21 DOMString x; 25 DOMString x;
22 }; 26 };
23 27
24 callback Callback1 = void(); 28 callback Callback1 = void();
25 callback Callback2 = void(long x); 29 callback Callback2 = void(long x);
26 callback Callback3 = void(MyType1 arg); 30 callback Callback3 = void(MyType1 arg);
27 callback Callback4 = void(MyType2[] arg); 31 callback Callback4 = void(MyType2[] arg);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 static void function18(Callback7 cb); 76 static void function18(Callback7 cb);
73 }; 77 };
74 78
75 interface Events { 79 interface Events {
76 static void onFoo1(); 80 static void onFoo1();
77 static void onFoo2(long x); 81 static void onFoo2(long x);
78 static void onFoo2(MyType1 arg); 82 static void onFoo2(MyType1 arg);
79 static void onFoo3(EnumType type); 83 static void onFoo3(EnumType type);
80 }; 84 };
81 }; 85 };
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/idl_schema_test.py ('k') | tools/json_schema_compiler/test/idl_schemas_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698