summaryrefslogtreecommitdiffstats
path: root/test/samples/uscxml/test-imap.scxml
diff options
context:
space:
mode:
Diffstat (limited to 'test/samples/uscxml/test-imap.scxml')
-rw-r--r--test/samples/uscxml/test-imap.scxml42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/samples/uscxml/test-imap.scxml b/test/samples/uscxml/test-imap.scxml
new file mode 100644
index 0000000..13e4ec2
--- /dev/null
+++ b/test/samples/uscxml/test-imap.scxml
@@ -0,0 +1,42 @@
+<scxml datamodel="ecmascript">
+ <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" />
+ <script>
+//<![CDATA[
+ someBinaryData1 = new ArrayBuffer(256);
+ var view = new Uint8Array(someBinaryData1);
+ for (var i = 0; i < view.length; i++) {
+ view[i] = i;
+ }
+//]]>
+ </script>
+
+ <state id="main">
+
+ <invoke type="imap" id="imap">
+ <param name="ssl" expr="'true'" />
+ <param name="username" expr="'sradomski'" />
+ <param name="password" expr="''" />
+ <param name="server" expr="'imap://localhost'" />
+ <finalize><script>dump(_event)</script></finalize>
+ </invoke>
+
+ <onentry>
+ <send event="continue" delay="200ms" />
+ </onentry>
+
+ <transition event="continue">
+ <send target="#_imap" event="select">
+ <param name="verbose" expr="'off'" />
+ <param name="mailbox" expr="'Bar.Test1'" />
+ </send>
+
+ <!-- <send target="#_imap" event="list">
+ <param name="verbose" expr="'off'" />
+ <param name="reference" expr="'*'" />
+ <param name="mailbox" expr="''" />
+ </send> -->
+
+ </transition>
+
+ </state>
+</scxml> \ No newline at end of file