Re: SCXML Test 553 assumes unset variables are invalid
Stefan Radomski <[email protected]> Thu, 3 Jul 2014 00:58:09 +0000
| Newsgroups | gmane.comp.web.voice |
|---|---|
| Message-ID | <BBF1944A-A570-4FD3-8F6D-683ECB568E7A@tk.informatik.tu-darmstadt.de> |
Hey there, I am having difficulties passing test 553 and 554. The tests are supposed to check that no invoke/send are executed if there is an error in their evaluation - my problem is that there is no error! Both have a namelist=""foo"” in there. My XML parser will resolve that to '“foo”’ (mind the double quotes). Now if I try to evaluate this with the ECMAScript DM, it evaluates just fine to a string with the content of ‘foo’, no error there. The spec requires namelist to contain “location expressions” and for ECMAScript specifically “left-hand-side expression” which makes sense. But I am having trouble to determine whether something is a valid LHS, how would you check such a thing in JavaScript? I could have “NAMELIST_ENTRY = undefined;” and see if I can parse it, without evaluating it but I was wondering if someone thought of something more clever? Regards Stefan On Jun 29, 2014, at 15:57, Jim Barnett <[email protected]> wrote: > I have introduced conf:invalidNamelist and used in test553 and test554. > > On 6/28/2014 11:21 PM, Gavin Kistner wrote: >> test553.txml includes: >> >> <!-- include a non-existing var in the namelist --> >> <send event="event1" conf:namelist="2"/> >> >> This is another case of a test assuming that a data model location that has not been set is invalid. I would prefer for this to be converted to: >> <send event="event1" conf:invalidNamelistLocation="”/> >> so that I can do something special here in my txml->scxml conversion. >> >> > > -- > Jim Barnett > Genesys >