summaryrefslogtreecommitdiffstats
path: root/dom/base/test/unit/isequalnode_data.xml
blob: 4b72f5d502101b15ba1edfe8cf22f016e84f5c29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?xml version="1.0" ?>
<!DOCTYPE Test [
  <!ATTLIST test id ID #REQUIRED>
]>

<root>

  <test id="test_setAttribute">
    <foo/>
    <foo/>
  </test>

  <test id="test_normalization">
    <bar/>
    <bar/>
  </test>

  <test id="test_whitespace">

    <!--
      Tests here consist of isEqualNode comparisons of the first and third
      (zero-indexed) child nodes of each test.

      In the typical case this means that the zeroth, second, and fourth
      children are whitespace and the first and third are the nodes being
      compared for equality or inequality.

      In some cases, however, where either node is a Text node, this pattern
      must of necessity be violated.  Examples of such tests include the
      test_text# tests.

      As a result of this, BE CAREFUL NOT TO INTRODUCE STRAY WHITESPACE WHEN
      EDITING THIS FILE.  You have been warned.
    -->

    <test id="test_pi1">
      <?pi data?>
      <?pi data?>
    </test>
    <test id="test_pi2">
      <?pi data?>
      <?pi     data?>
    </test>
    <test id="test_pi3">
      <?pi data?>
      <?pi     data ?>
    </test>
    <test id="test_pi4">
      <?pi ?>
      <?pi       ?>
    </test>
    <test id="test_pi5">
      <?pi?>
      <?pi ?>
    </test>

    <test id="test_elt1">
      <foo></foo>
      <foo> </foo>
    </test>
    <test id="test_elt2">
      <foo></foo>
      <foo>
</foo>
    </test>
    <test id="test_elt3">
      <foo                                ></foo>
      <foo></foo>
    </test>
    <test id="test_elt4">
      <bar xmlns="http://example.com/"/>
      <bar/>
    </test>
    <test id="test_elt5">
      <bar xmlns="http://example.com/"/>
      <bar xmlns="http://example.com"/>
    </test>

    <test id="test_comment1">
      <!--foo-->
      <!--foo-->
    </test>
    <test id="test_comment2">
      <!--foo-->
      <!--foo -->
    </test>
    <test id="test_comment3">
      <!--foo-->
      <!--foo
-->
    </test>
    <test id="test_comment4">
      <!--
foo-->
      <!--
foo-->
    </test>

    <test id="test_text1"><placeholder-dont-move/>
<placeholder-dont-move/>
<placeholder-dont-move/>
    </test>
    <test id="test_text2"><placeholder-dont-move/>
<placeholder-dont-move/> <placeholder-dont-move/>
    </test>
    <test id="test_text3"><placeholder-dont-move/>
<placeholder-dont-move/><![CDATA[
]]>
    </test>

    <test id="test_cdata1">
      <![CDATA[ ]]><placeholder-dont-move/> <placeholder-dont-move/>
    </test>
    <test id="test_cdata2">
      <![CDATA[ ]]>
      <![CDATA[ ]]>
    </test>
    <test id="test_cdata3">
      <![CDATA[ ]]>
      <![CDATA[  ]]>
    </test>
    <test id="test_cdata4">
      <![CDATA[]]>
      <![CDATA[
]]>
    </test>
    <test id="test_cdata5">
      <![CDATA[ ]]>
      <![CDATA[
]]>
    </test>

  </test>

  <test id="test_namespaces">
    <test id="test_ns1">
      <foo xmlns:quiz="http://example.com/"
           quiz:q="fun"/>
      <foo xmlns:f="http://example.com/"
           f:q="fun"/>
    </test>
    <test id="test_ns2">
      <quiz:foo xmlns:quiz="http://example.com/"
           q="fun"/>
      <f:foo xmlns:f="http://example.com/"
           q="fun"/>
    </test>
  </test>

</root>