15 def _run_test(self, input_text, expected_text):
16 """Parses input, renders it and compares the results"""
17 parser = idlparser.IDLParser(idlparser.FREMONTCUT_SYNTAX)
19 output_text = idlrenderer.render(idl_file)
21 if output_text != expected_text:
27''' % (expected_text, output_text)
33 [Constructor(long x)] interface I : @A J, K {
35 readonly attribute long attr2;
36 getter attribute int get_attr;
37 setter attribute int set_attr;
39 [A,B=123] void
function(
in long x,
in optional boolean y);
41 const boolean CONST = 1;
43 @A @B() @C(x) @D(x=1) @E(x,y=2)
53 [Constructor(in long x)]
59 const boolean CONST = 1;
64 getter attribute int get_attr;
65 setter attribute int set_attr;
68 [A, B=123] void
function(
in long x,
in optional boolean y);
69 @A @B @C(x) @D(x=1) @E(x, y=2) void something();
81if __name__ ==
"__main__":
82 logging.config.fileConfig(
"logging.conf")
83 if __name__ ==
'__main__':
def _run_test(self, input_text, expected_text)
Dart_NativeFunction function