summaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-08-11 14:32:54 +0100
committerVincent Sanders <vince@kyllikki.org>2015-08-11 14:32:54 +0100
commitb86883a7cce7d982c3f0d0069332dd490331e630 (patch)
treeda0bcaca426701b687fbad3aa0d4a878c66dcfe3 /test/data
parentc232cf149a7aa105398d7b76b035daa346c41c99 (diff)
downloadnsgenbind-b86883a7cce7d982c3f0d0069332dd490331e630.tar.gz
nsgenbind-b86883a7cce7d982c3f0d0069332dd490331e630.tar.bz2
Extend WebIDL parsing to cope with second edition IDL static interface elements
Diffstat (limited to 'test/data')
-rw-r--r--test/data/bindings/browser-duk.bnd1
-rw-r--r--test/data/idl/urlutils.idl65
2 files changed, 66 insertions, 0 deletions
diff --git a/test/data/bindings/browser-duk.bnd b/test/data/bindings/browser-duk.bnd
index d0c2c41..44497a1 100644
--- a/test/data/bindings/browser-duk.bnd
+++ b/test/data/bindings/browser-duk.bnd
@@ -12,6 +12,7 @@ binding duk_libdom {
webidl "dom.idl";
webidl "html.idl";
webidl "uievents.idl";
+ webidl "urlutils.idl";
webidl "console.idl";
preface
diff --git a/test/data/idl/urlutils.idl b/test/data/idl/urlutils.idl
new file mode 100644
index 0000000..e79d4ad
--- /dev/null
+++ b/test/data/idl/urlutils.idl
@@ -0,0 +1,65 @@
+// Retrived from https://url.spec.whatwg.org
+// Tue Aug 11 12:11:31 BST 2015
+// Removed duplicate IDL from appendix
+
+[Constructor(USVString url, optional USVString base),
+ Exposed=(Window,Worker)]
+interface URL {
+ static USVString domainToASCII(USVString domain);
+ static USVString domainToUnicode(USVString domain);
+};
+URL implements URLUtils;
+URL implements URLUtilsSearchParams;
+
+[NoInterfaceObject,
+ Exposed=(Window,Worker)]
+interface URLUtils {
+ stringifier attribute USVString href;
+ readonly attribute USVString origin;
+
+ attribute USVString protocol;
+ attribute USVString username;
+ attribute USVString password;
+ attribute USVString host;
+ attribute USVString hostname;
+ attribute USVString port;
+ attribute USVString pathname;
+ attribute USVString search;
+ attribute USVString hash;
+};
+
+[NoInterfaceObject,
+ Exposed=(Window, Worker)]
+interface URLUtilsSearchParams {
+ attribute URLSearchParams searchParams;
+};
+
+[NoInterfaceObject,
+ Exposed=(Window,Worker)]
+interface URLUtilsReadOnly {
+ stringifier readonly attribute USVString href;
+ readonly attribute USVString origin;
+
+ readonly attribute USVString protocol;
+ readonly attribute USVString host;
+ readonly attribute USVString hostname;
+ readonly attribute USVString port;
+ readonly attribute USVString pathname;
+ readonly attribute USVString search;
+ readonly attribute USVString hash;
+};
+
+[Constructor(optional (USVString or URLSearchParams) init = ""),
+ Exposed=(Window,Worker)]
+interface URLSearchParams {
+ void append(USVString name, USVString value);
+ void delete(USVString name);
+ USVString? get(USVString name);
+ sequence<USVString> getAll(USVString name);
+ boolean has(USVString name);
+ void set(USVString name, USVString value);
+ iterable<USVString, USVString>;
+ stringifier;
+};
+
+