aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/javascript/template_extend1_runme.js
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/javascript/template_extend1_runme.js')
-rw-r--r--Examples/test-suite/javascript/template_extend1_runme.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/Examples/test-suite/javascript/template_extend1_runme.js b/Examples/test-suite/javascript/template_extend1_runme.js
new file mode 100644
index 000000000..20ebbf24b
--- /dev/null
+++ b/Examples/test-suite/javascript/template_extend1_runme.js
@@ -0,0 +1,12 @@
+var template_extend1 = require("template_extend1");
+
+a = new template_extend1.lBaz();
+b = new template_extend1.dBaz();
+
+if (a.foo() != "lBaz::foo") {
+ throw new Error;
+}
+
+if (b.foo() != "dBaz::foo") {
+ throw new Error;
+}