Update idltest with the latest WebIDL
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Fri, 05 Apr 2013 15:35:23 +0200
changeset 1550 0f69a29842e4
parent 1549 ea2f054185ba
child 1551 3e5d8126cf74
Update idltest with the latest WebIDL

This addresses #238.
test-suite/idltest/index.html
--- a/test-suite/idltest/index.html	Fri Apr 05 15:31:21 2013 +0200
+++ b/test-suite/idltest/index.html	Fri Apr 05 15:35:23 2013 +0200
@@ -26,12 +26,16 @@
 </pre>
 
 <pre id="idl">
+[Constructor]
 interface JsonLdProcessor {
-    void expand ((object or object[] or DOMString) input, optional JsonLdOptions? options, JsonLdCallback callback);
-    void compact ((object or object[] or DOMString) input, (object or DOMString)? context, optional JsonLdOptions? options, JsonLdCallback callback);
-    void flatten ((object or object[] or DOMString) input, (object or DOMString)? context, optional JsonLdOptions? options, JsonLdCallback callback);
+    void expand (JsonLdInput input, JsonLdCallback callback, optional JsonLdOptions? options);
+    void compact (JsonLdInput input, JsonLdContext? context, JsonLdCallback callback, optional JsonLdOptions? options);
+    void flatten (JsonLdInput input, JsonLdContext? context, JsonLdCallback callback, optional JsonLdOptions? options);
 };
 
+typedef (object or object[] or DOMString) JsonLdInput;
+typedef (object or DOMString) JsonLdContext;
+
 callback JsonLdCallback = void (JsonLdError error, (object or object[]) document);
 
 callback LoadContextCallback = void (DOMString url, ContextLoadedCallback callback);