Fix WEBIDL in idltest
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Thu, 25 Apr 2013 09:40:53 +0200
changeset 1603 c8ef2434efd0
parent 1602 613ff5f4ae2d
child 1604 f8892688ee3b
Fix WEBIDL in idltest

... and re-order it to be in the same order as in the spec.
test-suite/idltest/index.html
--- a/test-suite/idltest/index.html	Wed Apr 24 17:33:47 2013 -0400
+++ b/test-suite/idltest/index.html	Thu Apr 25 09:40:53 2013 +0200
@@ -30,19 +30,12 @@
 interface JsonLdProcessor {
     Future compact (JsonLdInput input, JsonLdContext context, optional JsonLdOptions options);
     Future expand (JsonLdInput input, optional JsonLdOptions options);
-    Future flatten (JsonLdInput input, JsonLdContext? context, optional JsonLdOptions options);
+    Future flatten (JsonLdInput input, optional JsonLdContext? context, optional JsonLdOptions options);
 };
 
 typedef (object or object[] or DOMString) JsonLdInput;
 typedef (object or DOMString) JsonLdContext;
 
-callback LoadContextCallback = Future (DOMString url);
-
-dictionary RemoteContext {
-  DOMString url;
-  DOMString context;
-};
-
 dictionary JsonLdOptions {
     DOMString              base;
     boolean                compactArrays = true;
@@ -51,6 +44,13 @@
     DOMString              processingMode = "json-ld-1.0";
 };
 
+callback LoadContextCallback = Future (DOMString url);
+
+dictionary RemoteContext {
+    DOMString url;
+    DOMString context;
+};
+
 dictionary JsonLdError {
     JsonLdErrorCode code;
     DOMString?      message = null;