summaryrefslogtreecommitdiffstats
path: root/test/uscxml/dom
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-11-12 21:27:24 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-11-12 21:27:24 (GMT)
commitee752118ffafdcded996fea866f893d7cb018e2c (patch)
tree623808b170e3ea4d57314582b9e26eede3722ef3 /test/uscxml/dom
parentc95be52b02e921d4ba8b3e707cd2f6239ce9c99e (diff)
downloaduscxml-ee752118ffafdcded996fea866f893d7cb018e2c.zip
uscxml-ee752118ffafdcded996fea866f893d7cb018e2c.tar.gz
uscxml-ee752118ffafdcded996fea866f893d7cb018e2c.tar.bz2
Hopefully fixed unfortunate document.evaluate bug in ECMAScript bindings
Diffstat (limited to 'test/uscxml/dom')
-rw-r--r--test/uscxml/dom/test-xml-access.scxml9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/uscxml/dom/test-xml-access.scxml b/test/uscxml/dom/test-xml-access.scxml
index a637c00..4c7abab 100644
--- a/test/uscxml/dom/test-xml-access.scxml
+++ b/test/uscxml/dom/test-xml-access.scxml
@@ -2,19 +2,22 @@
<scxml datamodel="ecmascript">
<script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js"/>
<datamodel>
- <data id="cmplx1" src="TestData.json"/>
<data id="cmplx2" src="TestData.xml"/>
+ <data id="cmplx1" src="TestData.json"/>
+ <data id="cmplx3"><inline><xml foo="sdfasdf"/></inline></data>
</datamodel>
<state id="s1">
<onentry>
+ <log label="cmplx2" expr="document.evaluate('//note/@importance', cmplx2).asString()" />
<log label="cmplx1" expr="cmplx1.name"/>
<log label="cmplx1" expr="cmplx1.price"/>
<script>dump(cmplx1)</script>
+ <log label="cmplx3" expr="document.evaluate('//xml/@foo').asString()" />
<log label="cmplx2" expr="cmplx2.getAttribute('importance')"/>
<script>
- var node = document.evaluate('//to', cmplx2).asString();
- dump(node);
+ dump(document.evaluate('/scxml/@datamodel').asString());
+ dump(document.evaluate('//xml/@foo', cmplx3).asString());
</script>
</onentry>
<transition target="done"/>