summaryrefslogtreecommitdiffstats
path: root/test/uscxml/scripts/test-simple-ecmascript.scxml
diff options
context:
space:
mode:
Diffstat (limited to 'test/uscxml/scripts/test-simple-ecmascript.scxml')
-rw-r--r--test/uscxml/scripts/test-simple-ecmascript.scxml12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/uscxml/scripts/test-simple-ecmascript.scxml b/test/uscxml/scripts/test-simple-ecmascript.scxml
new file mode 100644
index 0000000..10dee02
--- /dev/null
+++ b/test/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