summaryrefslogtreecommitdiffstats
path: root/test/uscxml/test-umundo-s11n.scxml
diff options
context:
space:
mode:
Diffstat (limited to 'test/uscxml/test-umundo-s11n.scxml')
-rw-r--r--test/uscxml/test-umundo-s11n.scxml58
1 files changed, 58 insertions, 0 deletions
diff --git a/test/uscxml/test-umundo-s11n.scxml b/test/uscxml/test-umundo-s11n.scxml
new file mode 100644
index 0000000..561cca7
--- /dev/null
+++ b/test/uscxml/test-umundo-s11n.scxml
@@ -0,0 +1,58 @@
+<scxml datamodel="ecmascript">
+ <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" />
+ <state id="start">
+ <invoke type="umundo" id="scxml.umundo">
+ <param name="types" expr="'proto/Test.proto'" />
+ <param name="channel" expr="'types'" />
+ <param name="domain" expr="''" />
+ <finalize>
+ <script>
+ dump(_event);
+ </script>
+ </finalize>
+ </invoke>
+ <state id="idle">
+ <transition event="umundo.sub.added">
+ <send target="#_scxml.umundo" event="dump.event">
+ <!-- param name="type" expr="'RepeatedTypes'" / -->
+ <content>
+ ({
+ "doubleType": [ 1.0, 2.0 ],
+ "floatType": [ 2.0, 3.0 ],
+ "int32Type": [ -3, -4 ],
+ "int64Type": [ -4, -5 ],
+ "uint32Type": [ 5, 6 ],
+ "uint64Type": [ 6, 7 ],
+ "sint32Type": [ -7, -8 ],
+ "sint64Type": [ -8, -9 ],
+ "fixed32Type": [ 9, 10 ],
+ "fixed64Type": [ 10, 11 ],
+ "sfixed32Type": [ -11, -12 ],
+ "sfixed64Type": [ -12, -13 ],
+ "boolType": [ false, true ],
+ "stringType": [ '1st string', '2nd string' ],
+ "bytesType": [ '1st bytes', '2nd bytes' ],
+ "repeatedMessage": [{
+ "doubleType": [ 1.0, 2.0 ],
+ "floatType": [ 2.0, 3.0 ],
+ "int32Type": [ -3, -4 ],
+ "int64Type": [ -4, -5 ],
+ "uint32Type": [ 5, 6 ],
+ "uint64Type": [ 6, 7 ],
+ "sint32Type": [ -7, -8 ],
+ "sint64Type": [ -8, -9 ],
+ "fixed32Type": [ 9, 10 ],
+ "fixed64Type": [ 10, 11 ],
+ "sfixed32Type": [ -11, -12 ],
+ "sfixed64Type": [ -12, -13 ],
+ "boolType": [ false, true ],
+ "stringType": [ '1st string', '2nd string' ],
+ "bytesType": [ '1st bytes', '2nd bytes' ],
+ }],
+ })
+ </content>
+ </send>
+ </transition>
+ </state>
+ </state>
+</scxml> \ No newline at end of file