summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-09-23 16:30:04 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-09-23 16:30:04 (GMT)
commitbe3c180fec71866a91b5f9297708d581bc1d6435 (patch)
tree830acee295b8456d1e629a0db6c3734f629074a3 /test
parent8dde1311719b29c63efb379566916cb1aa9a7cd7 (diff)
downloaduscxml-be3c180fec71866a91b5f9297708d581bc1d6435.zip
uscxml-be3c180fec71866a91b5f9297708d581bc1d6435.tar.gz
uscxml-be3c180fec71866a91b5f9297708d581bc1d6435.tar.bz2
Added instant messaging invoker
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt12
-rw-r--r--test/samples/uscxml/test-instant-messaging.scxml20
2 files changed, 26 insertions, 6 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 5fcad93..de7fa70 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -18,12 +18,12 @@ if (SWI_FOUND)
add_test(test-prolog-swi ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/uscxml-browser ${CMAKE_SOURCE_DIR}/test/samples/uscxml/test-prolog.scxml)
endif()
-if (FFMPEG_FOUND)
- add_executable(test-ffmpeg src/test-ffmpeg.cpp)
- target_link_libraries(test-ffmpeg uscxml)
- add_test(test-ffmpeg ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test-ffmpeg)
- set_target_properties(test-ffmpeg PROPERTIES FOLDER "Tests")
-endif()
+# if (FFMPEG_FOUND)
+# add_executable(test-ffmpeg src/test-ffmpeg.cpp)
+# target_link_libraries(test-ffmpeg uscxml)
+# add_test(test-ffmpeg ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test-ffmpeg)
+# set_target_properties(test-ffmpeg PROPERTIES FOLDER "Tests")
+# endif()
if (V8_FOUND)
add_test(test-ecmascript ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/uscxml-browser ${CMAKE_SOURCE_DIR}/test/samples/uscxml/test-ecmascript.scxml)
diff --git a/test/samples/uscxml/test-instant-messaging.scxml b/test/samples/uscxml/test-instant-messaging.scxml
new file mode 100644
index 0000000..569ec59
--- /dev/null
+++ b/test/samples/uscxml/test-instant-messaging.scxml
@@ -0,0 +1,20 @@
+<scxml datamodel="ecmascript">
+ <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" />
+ <state id="idle">
+ <onentry>
+ <send event="dump" delay="100ms" />
+ </onentry>
+
+ <invoke type="instant-messaging" id="im">
+ <param name="username" expr="'uscxml@localhost'" />
+ <param name="password" expr="'password'" />
+ <param name="protocol" expr="'prpl-jabber'" />
+ </invoke>
+
+ <state id="dump">
+ <transition event="dump" target="dump">
+ <script>dump(_invokers['im']);</script>
+ </transition>
+ </state>
+ </state>
+</scxml> \ No newline at end of file