Menu

#199 tcldom-3.1 serialization.test cases failure with tcl 8.5.4

Example Scripts
open
TclDOM (91)
5
2008-11-20
2008-10-17
No

platform: sparc solaris 8
tcl: 8.5.4 release
tclxml: 3.1 release
tcldom: 3.1 release (dom::tcl 3.0)

==== serialize-3.2 XML declaration: attributes in correct order FAILED
==== Contents of test case:

dom::DOMImplementation serialize $doc

---- Result was:
<?xml version='1.0'?>
<!DOCTYPE Test>
<Test/>
---- Result should have been (regexp matching):
<\?xml version=('|")1.0('|")( encoding=('|")[^'"]+('|"))? standalone=('|")yes('|
")\?>
(<!DOCTYPE Test>
)?<Test(/>|></Test>)
==== serialize-3.2 FAILED

==== serialize-4.2 Serialization of markup characters in attribute values FAILED
==== Contents of test case:

dom::DOMImplementation serialize [dom::document cget $doc -documentEleme
nt]

---- Result was:
<tests>
<test LT="&lt;">
<test GT=">">
<test AMP="&amp;">
<test QUOT='"'>
<test APOS="'">
</test></test></test></test></test></tests>
---- Result should have been (regexp matching):
<tests>
<test LT=('|")\&amp;lt;('|")/>
<test GT=('|")(\&amp;gt;|>)('|")/>
<test AMP=('|")\&amp;amp;('|")/>
<test QUOT='(\&amp;quot;|")'/>
<test APOS="(\&amp;apos;|')"/>
</tests>
==== serialize-4.2 FAILED

==== serialize-6.1 XML Namespaces - from parsed document FAILED
==== Contents of test case:

dom::DOMImplementation serialize $doc

---- Result was:
<?xml version='1.0'?>
<!DOCTYPE ns5:Test>
<ns5:Test xmlns:ns5="urn:test" t="urn:test"><ns5:Value>ABC</ns5:Value></ns5:Test
>
---- Result should have been (regexp matching):
<\?xml version=("|')1\.0("|')\?>
(<!DOCTYPE t:Test>
)?<t:Test xmlns:t=("|')urn:test("|')><t:Value>ABC</t:Value></t:Test>
==== serialize-6.1 FAILED

==== serialize-7.1 Document prologue FAILED
==== Contents of test case:

dom::serialize $doc

---- Result was:
<?xml version='1.0'?>
<!DOCTYPE test>
<?xml-stylesheet type="text/xsl" href="test_view.xsl"?><test/>
---- Result should have been (regexp matching):
<\?xml version=("|')1.0("|') encoding=("|')utf-8("|') standalone=("|')no("|')\?>
<\?xml-stylesheet type=("|')text/xsl("|') href=("|')test_view.xsl("|')\?>
<!DOCTYPE test SYSTEM ("|')test.dtd("|')>
<test */>

==== serialize-7.1 FAILED

Discussion

  • Steve Ball

    Steve Ball - 2008-11-20
    • assigned_to: nobody --> balls
     
  • Steve Ball

    Steve Ball - 2008-11-26

    Are you using libxml2 or the pure Tcl implementation?

     
  • Larry W. Virden

    Larry W. Virden - 2008-11-26

    how can I tell which is being used by the make test? Does the test suite report that information? In general, I had to make all the pieces to get the tests to try and run.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.