summaryrefslogtreecommitdiffstats
path: root/test/samples/uscxml
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-10-07 23:13:54 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-10-07 23:13:54 (GMT)
commit36b5c7614cc896d043ddeebae1cdb4e8e94afe18 (patch)
treee14ac52189363b252aa8ea10fdd66efef069d665 /test/samples/uscxml
parent567df9318fff6d1bb570191c33ea68cd6ef88bee (diff)
downloaduscxml-36b5c7614cc896d043ddeebae1cdb4e8e94afe18.zip
uscxml-36b5c7614cc896d043ddeebae1cdb4e8e94afe18.tar.gz
uscxml-36b5c7614cc896d043ddeebae1cdb4e8e94afe18.tar.bz2
Reduced compile times
- new commandline argument handling - compiles on windows again
Diffstat (limited to 'test/samples/uscxml')
-rw-r--r--test/samples/uscxml/test-instant-messaging.scxml17
-rw-r--r--test/samples/uscxml/test-performance.scxml2
-rw-r--r--test/samples/uscxml/test-startup-time.scxml4
3 files changed, 17 insertions, 6 deletions
diff --git a/test/samples/uscxml/test-instant-messaging.scxml b/test/samples/uscxml/test-instant-messaging.scxml
index 6ca39d4..588b2b7 100644
--- a/test/samples/uscxml/test-instant-messaging.scxml
+++ b/test/samples/uscxml/test-instant-messaging.scxml
@@ -19,18 +19,25 @@
<param name="username" expr="'uscxml@localhost'" />
<param name="password" expr="'password'" />
<param name="protocol" expr="'prpl-jabber'" />
+ <finalize>
+ <script>print("-----------------\n"); dump(_event);</script>
+ </finalize>
</invoke>
<state id="dump">
<transition event="dump" target="dump">
<send event="dump" delay="1000ms" />
<script>//dump(_invokers['im']);</script>
- <send target="#_im" event="im.send">
- <param name="receiver" expr="'sradomski@localhost'" />
- <param name="data" expr="someBinaryData" />
- <content>Hey There!</content>
- </send>
</transition>
</state>
+
+ <transition event="im.buddy.status.changed" cond="_event.data.name === 'sradomski@localhost'">
+ <send target="#_im" event="im.send">
+ <param name="receiver" expr="'sradomski@localhost'" />
+ <param name="data" expr="someBinaryData" />
+ <content>Hey There!</content>
+ </send>
+ </transition>
+
</state>
</scxml> \ No newline at end of file
diff --git a/test/samples/uscxml/test-performance.scxml b/test/samples/uscxml/test-performance.scxml
index a102a18..4d2d4c4 100644
--- a/test/samples/uscxml/test-performance.scxml
+++ b/test/samples/uscxml/test-performance.scxml
@@ -1,6 +1,6 @@
<scxml datamodel="ecmascript">
<datamodel>
- <data id="iterations">1000</data>
+ <data id="iterations">10000</data>
</datamodel>
<state id="start">
<transition target="loop" />
diff --git a/test/samples/uscxml/test-startup-time.scxml b/test/samples/uscxml/test-startup-time.scxml
new file mode 100644
index 0000000..cc10f04
--- /dev/null
+++ b/test/samples/uscxml/test-startup-time.scxml
@@ -0,0 +1,4 @@
+<scxml datamodel="ecmascript">
+ <script>print("asdf");</script>
+ <state id="foo" final="true" />
+</scxml> \ No newline at end of file