summaryrefslogtreecommitdiffstats
path: root/test/samples/uscxml/scripts/test-simple-ecmascript.scxml
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-01-10 22:42:42 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-01-10 22:42:42 (GMT)
commit7aa7095d17a180d663cd9647c31d99d97c1dca4f (patch)
tree460bc3a67f0adc3199bec9f22ee15a102263eb4c /test/samples/uscxml/scripts/test-simple-ecmascript.scxml
parentda1032ffbff229ce2ca9a83d47522ff45c90ba23 (diff)
downloaduscxml-7aa7095d17a180d663cd9647c31d99d97c1dca4f.zip
uscxml-7aa7095d17a180d663cd9647c31d99d97c1dca4f.tar.gz
uscxml-7aa7095d17a180d663cd9647c31d99d97c1dca4f.tar.bz2
Major changes - see details
- Dynamic SceneGraph ML - V8 DOM for ecmascript datamodel - New heartbeat invoker - Fixed various bugs
Diffstat (limited to 'test/samples/uscxml/scripts/test-simple-ecmascript.scxml')
-rw-r--r--test/samples/uscxml/scripts/test-simple-ecmascript.scxml12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/samples/uscxml/scripts/test-simple-ecmascript.scxml b/test/samples/uscxml/scripts/test-simple-ecmascript.scxml
new file mode 100644
index 0000000..10dee02
--- /dev/null
+++ b/test/samples/uscxml/scripts/test-simple-ecmascript.scxml
@@ -0,0 +1,12 @@
+<scxml datamodel="ecmascript">
+ <state id="start">
+ <onentry>
+ <script>
+ var nodeSet = document.evaluate("//state").asNodeSet();
+ nodeSet[0].setAttribute("foo", "bar");
+ </script>
+ <raise event="redo" />
+ </onentry>
+ <transition target="start" event="redo" />
+ </state>
+</scxml> \ No newline at end of file