trunk/resources/tests/dom3/Core/cdatasections01.xml
changeset 0 5057afe1ec87
equal deleted inserted replaced
-1:000000000000 0:5057afe1ec87
       
     1 <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
       
     2 
       
     3 <!--
       
     4 
       
     5 Copyright (c) 2001-2004 World Wide Web Consortium, 
       
     6 (Massachusetts Institute of Technology, Institut National de
       
     7 Recherche en Informatique et en Automatique, Keio University).  All 
       
     8 Rights Reserved.  This program is distributed under the W3C's Software
       
     9 Intellectual Property License.  This program is distributed in the 
       
    10 hope that it will be useful, but WITHOUT ANY WARRANTY; without even
       
    11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
       
    12 PURPOSE.  
       
    13 
       
    14 See W3C License http://www.w3.org/Consortium/Legal/ for more details.
       
    15 
       
    16 -->
       
    17 
       
    18 
       
    19 <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="cdatasections01">
       
    20 <metadata>
       
    21 <title>cdatasections01</title>
       
    22 <creator>Curt Arnold</creator>
       
    23 <description>
       
    24 Normalize a document using Node.normalize and check that
       
    25 the value of the 'cdata-sections' parameter is ignored.
       
    26 </description>
       
    27 <date qualifier="created">2004-02-25</date>
       
    28 <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#ID-normalize"/>
       
    29 <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#parameter-cdata-sections"/>
       
    30 </metadata>
       
    31 <implementationAttribute name="namespaceAware" value="true"/>
       
    32 <var name="doc" type="Document"/>
       
    33 <var name="elem" type="Element"/>
       
    34 <var name="newCdata" type="CDATASection"/>
       
    35 <var name="cdata" type="CDATASection"/>
       
    36 <var name="text" type="Node"/>
       
    37 <var name="nodeName" type="DOMString"/>
       
    38 <var name="nodeValue" type="DOMString"/>
       
    39 <var name="appendedChild" type="Node"/>
       
    40 <var name="domConfig" type="DOMConfiguration"/>
       
    41 <var name="pList" type="NodeList"/>
       
    42 <var name="errorMonitor" type="DOMErrorMonitor"/>
       
    43 <load var="doc" href="barfoo" willBeModified="true"/>
       
    44 <getElementsByTagName var="pList" obj="doc" tagname='"p"' interface="Document"/>
       
    45 <item var="elem" obj="pList" index="0" interface="NodeList"/>
       
    46 <createCDATASection var="newCdata" obj="doc" data='"CDATA"'/>
       
    47 <appendChild obj="elem" var="appendedChild" newChild="newCdata"/>
       
    48 <domConfig obj="doc" var="domConfig" interface="Document"/>
       
    49 <setParameter obj="domConfig" name='"cdata-sections"' value="false"/>
       
    50 <setParameter obj="domConfig" name='"error-handler"' value="errorMonitor"/>
       
    51 <normalize obj="doc"/>
       
    52 <assertLowerSeverity obj="errorMonitor" severity="SEVERITY_ERROR" id="normalizationError"/>
       
    53 <getElementsByTagName var="pList" obj="doc" tagname='"p"' interface="Document"/>
       
    54 <item var="elem" obj="pList" index="0" interface="NodeList"/>
       
    55 <lastChild var="cdata" obj="elem" interface="Node"/>
       
    56 <nodeName var="nodeName" obj="cdata"/>
       
    57 <assertEquals actual="nodeName" expected='"#cdata-section"' id="documentnormalizedocument03_true" ignoreCase="false"/>
       
    58 </test> 
       
    59