summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-07-25 21:59:19 +0100
committerVincent Sanders <vince@kyllikki.org>2015-07-25 21:59:19 +0100
commit13be4238314d1a9903b037ab749074575ef0d1eb (patch)
tree48a6f817a612173d7415730f2e0f44afb660848e /test
parent6406dae8c4da597da888345cf145f366b8297d7c (diff)
downloadnsgenbind-13be4238314d1a9903b037ab749074575ef0d1eb.tar.gz
nsgenbind-13be4238314d1a9903b037ab749074575ef0d1eb.tar.bz2
initial duktape libdom generator
This generator creates all the output files and generates the finalisers for every class.
Diffstat (limited to 'test')
-rw-r--r--test/data/bindings/HTMLUnknownElement.bnd17
-rw-r--r--test/data/bindings/browser-duk.bnd12
2 files changed, 29 insertions, 0 deletions
diff --git a/test/data/bindings/HTMLUnknownElement.bnd b/test/data/bindings/HTMLUnknownElement.bnd
new file mode 100644
index 0000000..376a823
--- /dev/null
+++ b/test/data/bindings/HTMLUnknownElement.bnd
@@ -0,0 +1,17 @@
+class HTMLUnknownElement {
+ preface %{
+/* class pre */
+ %};
+
+ prologue %{
+/* class pro */
+ %};
+
+ epilogue %{
+/* class epi */
+ %};
+
+ postface %{
+/* class post */
+ %};
+}
diff --git a/test/data/bindings/browser-duk.bnd b/test/data/bindings/browser-duk.bnd
index 4e06d23..273eae9 100644
--- a/test/data/bindings/browser-duk.bnd
+++ b/test/data/bindings/browser-duk.bnd
@@ -15,18 +15,30 @@ binding duk_libdom {
webidl "console.idl";
preface %{
+/* DukTape JavaScript bindings for NetSurf browser
+ *
+ * Copyright 2015 Vincent Sanders <vince@netsurf-browser.org>
+ * This file is part of NetSurf, http://www.netsurf-browser.org/
+ * Released under the terms of the MIT License,
+ * http://www.opensource.org/licenses/mit-license
+ */
%};
prologue %{
+/* binding prologue */
%};
epilogue %{
+/* binding epilogue */
%};
postface %{
+/* binding postface */
%};
}
+#include "HTMLUnknownElement.bnd"
+
class Node {
private "dom_node *" node;