aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/javascript/smart_pointer_templatevariables_runme.js
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/javascript/smart_pointer_templatevariables_runme.js')
-rw-r--r--Examples/test-suite/javascript/smart_pointer_templatevariables_runme.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/Examples/test-suite/javascript/smart_pointer_templatevariables_runme.js b/Examples/test-suite/javascript/smart_pointer_templatevariables_runme.js
new file mode 100644
index 000000000..ddb5f8bd0
--- /dev/null
+++ b/Examples/test-suite/javascript/smart_pointer_templatevariables_runme.js
@@ -0,0 +1,22 @@
+var smart_pointer_templatevariables = require("smart_pointer_templatevariables");
+
+d = new smart_pointer_templatevariables.DiffImContainerPtr_D(smart_pointer_templatevariables.create(1234, 5678));
+
+// TODO xyz has been commented out in the shared test file, find out why
+
+if ((d.id != 1234)) {
+ throw new Error;
+}
+//if ((d.xyz != 5678)) {
+// throw new Error;
+//}
+
+d.id = 4321;
+//d.xyz = 8765;
+
+if ((d.id != 4321)) {
+ throw new Error;
+}
+//if ((d.xyz != 8765)) {
+// throw new Error;
+//}