1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/test/unit/isequalnode_data.xml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,150 @@ 1.4 +<?xml version="1.0" ?> 1.5 +<!DOCTYPE Test [ 1.6 + <!ATTLIST test id ID #REQUIRED> 1.7 +]> 1.8 + 1.9 +<root> 1.10 + 1.11 + <test id="test_setAttribute"> 1.12 + <foo/> 1.13 + <foo/> 1.14 + </test> 1.15 + 1.16 + <test id="test_normalization"> 1.17 + <bar/> 1.18 + <bar/> 1.19 + </test> 1.20 + 1.21 + <test id="test_whitespace"> 1.22 + 1.23 + <!-- 1.24 + Tests here consist of isEqualNode comparisons of the first and third 1.25 + (zero-indexed) child nodes of each test. 1.26 + 1.27 + In the typical case this means that the zeroth, second, and fourth 1.28 + children are whitespace and the first and third are the nodes being 1.29 + compared for equality or inequality. 1.30 + 1.31 + In some cases, however, where either node is a Text node, this pattern 1.32 + must of necessity be violated. Examples of such tests include the 1.33 + test_text# tests. 1.34 + 1.35 + As a result of this, BE CAREFUL NOT TO INTRODUCE STRAY WHITESPACE WHEN 1.36 + EDITING THIS FILE. You have been warned. 1.37 + --> 1.38 + 1.39 + <test id="test_pi1"> 1.40 + <?pi data?> 1.41 + <?pi data?> 1.42 + </test> 1.43 + <test id="test_pi2"> 1.44 + <?pi data?> 1.45 + <?pi data?> 1.46 + </test> 1.47 + <test id="test_pi3"> 1.48 + <?pi data?> 1.49 + <?pi data ?> 1.50 + </test> 1.51 + <test id="test_pi4"> 1.52 + <?pi ?> 1.53 + <?pi ?> 1.54 + </test> 1.55 + <test id="test_pi5"> 1.56 + <?pi?> 1.57 + <?pi ?> 1.58 + </test> 1.59 + 1.60 + <test id="test_elt1"> 1.61 + <foo></foo> 1.62 + <foo> </foo> 1.63 + </test> 1.64 + <test id="test_elt2"> 1.65 + <foo></foo> 1.66 + <foo> 1.67 +</foo> 1.68 + </test> 1.69 + <test id="test_elt3"> 1.70 + <foo ></foo> 1.71 + <foo></foo> 1.72 + </test> 1.73 + <test id="test_elt4"> 1.74 + <bar xmlns="http://example.com/"/> 1.75 + <bar/> 1.76 + </test> 1.77 + <test id="test_elt5"> 1.78 + <bar xmlns="http://example.com/"/> 1.79 + <bar xmlns="http://example.com"/> 1.80 + </test> 1.81 + 1.82 + <test id="test_comment1"> 1.83 + <!--foo--> 1.84 + <!--foo--> 1.85 + </test> 1.86 + <test id="test_comment2"> 1.87 + <!--foo--> 1.88 + <!--foo --> 1.89 + </test> 1.90 + <test id="test_comment3"> 1.91 + <!--foo--> 1.92 + <!--foo 1.93 +--> 1.94 + </test> 1.95 + <test id="test_comment4"> 1.96 + <!-- 1.97 +foo--> 1.98 + <!-- 1.99 +foo--> 1.100 + </test> 1.101 + 1.102 + <test id="test_text1"><placeholder-dont-move/> 1.103 +<placeholder-dont-move/> 1.104 +<placeholder-dont-move/> 1.105 + </test> 1.106 + <test id="test_text2"><placeholder-dont-move/> 1.107 +<placeholder-dont-move/> <placeholder-dont-move/> 1.108 + </test> 1.109 + <test id="test_text3"><placeholder-dont-move/> 1.110 +<placeholder-dont-move/><![CDATA[ 1.111 +]]> 1.112 + </test> 1.113 + 1.114 + <test id="test_cdata1"> 1.115 + <![CDATA[ ]]><placeholder-dont-move/> <placeholder-dont-move/> 1.116 + </test> 1.117 + <test id="test_cdata2"> 1.118 + <![CDATA[ ]]> 1.119 + <![CDATA[ ]]> 1.120 + </test> 1.121 + <test id="test_cdata3"> 1.122 + <![CDATA[ ]]> 1.123 + <![CDATA[ ]]> 1.124 + </test> 1.125 + <test id="test_cdata4"> 1.126 + <![CDATA[]]> 1.127 + <![CDATA[ 1.128 +]]> 1.129 + </test> 1.130 + <test id="test_cdata5"> 1.131 + <![CDATA[ ]]> 1.132 + <![CDATA[ 1.133 +]]> 1.134 + </test> 1.135 + 1.136 + </test> 1.137 + 1.138 + <test id="test_namespaces"> 1.139 + <test id="test_ns1"> 1.140 + <foo xmlns:quiz="http://example.com/" 1.141 + quiz:q="fun"/> 1.142 + <foo xmlns:f="http://example.com/" 1.143 + f:q="fun"/> 1.144 + </test> 1.145 + <test id="test_ns2"> 1.146 + <quiz:foo xmlns:quiz="http://example.com/" 1.147 + q="fun"/> 1.148 + <f:foo xmlns:f="http://example.com/" 1.149 + q="fun"/> 1.150 + </test> 1.151 + </test> 1.152 + 1.153 +</root>