summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
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