diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-11-12 21:27:24 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-11-12 21:27:24 (GMT) |
commit | ee752118ffafdcded996fea866f893d7cb018e2c (patch) | |
tree | 623808b170e3ea4d57314582b9e26eede3722ef3 /test/uscxml | |
parent | c95be52b02e921d4ba8b3e707cd2f6239ce9c99e (diff) | |
download | uscxml-ee752118ffafdcded996fea866f893d7cb018e2c.zip uscxml-ee752118ffafdcded996fea866f893d7cb018e2c.tar.gz uscxml-ee752118ffafdcded996fea866f893d7cb018e2c.tar.bz2 |
Hopefully fixed unfortunate document.evaluate bug in ECMAScript bindings
Diffstat (limited to 'test/uscxml')
-rw-r--r-- | test/uscxml/dom/test-xml-access.scxml | 9 |
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"/> |