Index: tools/idl_parser/test_parser/interface_web.idl |
diff --git a/tools/idl_parser/test_parser/interface_web.idl b/tools/idl_parser/test_parser/interface_web.idl |
index 8d41e91f82ccc7b51eaee72d5ccba87d28abd3dd..09a2902163456060de4b79a189d811ae7b34f4c5 100644 |
--- a/tools/idl_parser/test_parser/interface_web.idl |
+++ b/tools/idl_parser/test_parser/interface_web.idl |
@@ -181,3 +181,37 @@ interface MyIFaceStringifiers { |
interface MyExtendedAttributeInterface { |
[Attr, MethodIdentList=(Foo, Bar)] void method(); |
}; |
+ |
+/* TREE |
+ *Interface(MyIfacePromise) |
+ * Operation(method1) |
+ * Arguments() |
+ * Type() |
+ * Promise(Promise) |
+ * Type() |
+ * PrimitiveType(void) |
+ * Operation(method2) |
+ * Arguments() |
+ * Type() |
+ * Promise(Promise) |
+ * Type() |
+ * PrimitiveType(long) |
+ * Operation(method3) |
+ * Arguments() |
+ * Type() |
+ * Promise(Promise) |
+ * Type() |
+ * Any() |
+ * Operation(method4) |
+ * Arguments() |
+ * Type() |
+ * Promise(Promise) |
+ * Type() |
+ * Any() |
+ */ |
+interface MyIfacePromise { |
+ Promise<void> method1(); |
+ Promise<long> method2(); |
+ Promise<any> method3(); |
+ Promise method4(); |
+}; |