aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/javascript/extend_template_runme.js
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/javascript/extend_template_runme.js')
-rw-r--r--Examples/test-suite/javascript/extend_template_runme.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/Examples/test-suite/javascript/extend_template_runme.js b/Examples/test-suite/javascript/extend_template_runme.js
new file mode 100644
index 000000000..e8decbb1e
--- /dev/null
+++ b/Examples/test-suite/javascript/extend_template_runme.js
@@ -0,0 +1,10 @@
+var extend_template = require("extend_template");
+
+f = new extend_template.Foo_0();
+if (f.test1(37) != 37) {
+ throw new Error;
+}
+
+if (f.test2(42) != 42) {
+ throw new Error;
+}