Update of /cvsroot/openvrml/openvrml/tests
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6457/tests
Modified Files:
Tag: OpenVRML-0_16-BRANCH
testsuite.at
Log Message:
Report accurate line and column number information in parser error messages.
Index: testsuite.at
===================================================================
RCS file: /cvsroot/openvrml/openvrml/tests/testsuite.at,v
retrieving revision 1.15.2.1
retrieving revision 1.15.2.2
diff -C2 -d -r1.15.2.1 -r1.15.2.2
*** testsuite.at 17 Nov 2006 20:28:32 -0000 1.15.2.1
--- testsuite.at 18 Nov 2006 20:48:46 -0000 1.15.2.2
***************
*** 3,6 ****
--- 3,18 ----
AT_BANNER([VRML97 parse tests: code that should be accepted])
+ AT_SETUP([Ensure the line number is reported correctly for the last token on a line])
+ AT_DATA([line-number.wrl],
+ [[#VRML V2.0 utf8
+ Transform {
+ rotation 0 0 0 0
+ }
+ ]])
+ AT_CHECK([parse-vrml97 < line-number.wrl], [0], [],
+ [urn:X-openvrml:stream:1:3:17: warning: axis component of a rotation must be a normalized vector
+ ])
+ AT_CLEANUP
+
AT_SETUP([Trivial PROTO containment])
AT_DATA([proto-containment-trivial.wrl],
***************
*** 164,168 ****
]])
AT_CHECK([parse-vrml97 < unrecognized-node.wrl], [1], [],
! [urn:X-openvrml:stream:1:2:17: error: unknown node type "UnrecognizedNode"
])
AT_CLEANUP
--- 176,180 ----
]])
AT_CHECK([parse-vrml97 < unrecognized-node.wrl], [1], [],
! [urn:X-openvrml:stream:1:2:0: error: unknown node type "UnrecognizedNode"
])
AT_CLEANUP
***************
*** 180,184 ****
]])
AT_CHECK([parse-vrml97 < proto-eventin-conflict.wrl], [1], [],
! [urn:X-openvrml:stream:1:4:26: error: Interface "exposedField MFNode foo" conflicts with previous declaration
])
AT_CLEANUP
--- 192,196 ----
]])
AT_CHECK([parse-vrml97 < proto-eventin-conflict.wrl], [1], [],
! [urn:X-openvrml:stream:1:4:22: error: Interface "exposedField MFNode foo" conflicts with previous declaration
])
AT_CLEANUP
***************
*** 196,200 ****
]])
AT_CHECK([parse-vrml97 < proto-eventout-conflict.wrl], [1], [],
! [urn:X-openvrml:stream:1:5:0: error: Interface "eventOut SFColor foo_changed" conflicts with previous declaration
])
AT_CLEANUP
--- 208,212 ----
]])
AT_CHECK([parse-vrml97 < proto-eventout-conflict.wrl], [1], [],
! [urn:X-openvrml:stream:1:4:19: error: Interface "eventOut SFColor foo_changed" conflicts with previous declaration
])
AT_CLEANUP
***************
*** 212,216 ****
]])
AT_CHECK([parse-vrml97 < use-def-in-different-proto-default-value.wrl], [1], [],
! [urn:X-openvrml:stream:1:4:45: error: node "G" has not been defined in this scope
])
AT_CLEANUP
--- 224,228 ----
]])
AT_CHECK([parse-vrml97 < use-def-in-different-proto-default-value.wrl], [1], [],
! [urn:X-openvrml:stream:1:4:43: error: node "G" has not been defined in this scope
])
AT_CLEANUP
***************
*** 293,297 ****
]])
AT_CHECK([parse-x3dvrml < unsupported-component-level.x3dv], [1], [],
! [urn:X-openvrml:stream:1:3:19: error: unsupported component level
])
AT_CLEANUP
--- 305,309 ----
]])
AT_CHECK([parse-x3dvrml < unsupported-component-level.x3dv], [1], [],
! [urn:X-openvrml:stream:1:3:10: error: unsupported component level
])
AT_CLEANUP
|