[x3d-public] interesting test failure detected using X3DJSAIL

Brutzman, Donald (Don) (CIV) brutzman at nps.edu
Sun Nov 11 14:15:35 PST 2018


hi John.  i continue working on X3DJSAIL steadily and was reviewing some tests.

adding a meta title to the attached scene allowed X3dToJava.xslt to figure out the correct class name, even when that wasn't passed as a parameter to the stylesheet.  (AFAIK, XSLT stylesheets do not have a way to figure out the filename of their inputs, since they could be streams.

interestingly then the build script compiled and executed the corresponding .java and found a tupleness error that had eluded other QA tests:

====================
C:\x3d-code\www.web3d.org\x3d\stylesheets\test>java arc
Exception in thread "main" org.web3d.x3d.sai.InvalidFieldValueException: Illegal MFVec3f newValue array length=7, must be multiple of 3 or else be empty (newValue=0 0 0 0 0 5 0)
         at org.web3d.x3d.jsail.fields.MFVec3fObject.<init>(MFVec3fObject.java:289)
         at arc.initialize(arc.java:86)
         at arc.<init>(arc.java:47)
         at arc.main(arc.java:206)
====================

commit details at
https://sourceforge.net/p/x3d/code/27706
https://sourceforge.net/p/x3d/code/27707

please advise if you want arc.3d corrected, or left erroneous as a test case.  if you want it as a test case, then we should add a meta warning to the model so that it is documented & expected.

having fun with X3D unit testing!  sometimes it takes a long time to drain the swamp after some major refactoring, but "keeping the build green" is definitely worth it.

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: arc.java
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20181111/d911021b/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arc.x3d
Type: model/x3d+xml
Size: 7592 bytes
Desc: arc.x3d
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20181111/d911021b/attachment-0001.x3d>


More information about the x3d-public mailing list