testunitxml 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/CHANGES +4 -0
  2. data/README +1 -1
  3. data/docs/html/classes/REXML/DocType.src/M000005.html +7 -2
  4. data/docs/html/classes/REXML/DocType.src/M000006.html +7 -2
  5. data/docs/html/classes/REXML/DocType.src/M000007.html +1 -1
  6. data/docs/html/classes/REXML/DocType.src/M000008.html +1 -1
  7. data/docs/html/classes/Test.html +4 -0
  8. data/docs/html/classes/Test/Unit.html +4 -0
  9. data/docs/html/classes/Test/Unit/XML.html +26 -1
  10. data/docs/html/classes/Test/Unit/XML.src/M000009.html +1 -1
  11. data/docs/html/classes/Test/Unit/XML.src/M000010.html +23 -0
  12. data/docs/html/classes/Test/Unit/XML/Conditionals.html +173 -0
  13. data/docs/html/classes/Test/Unit/XML/Conditionals.src/M000011.html +19 -0
  14. data/docs/html/classes/Test/Unit/XML/Conditionals.src/M000012.html +42 -0
  15. data/docs/html/classes/Test/Unit/XML/NodeIterator.html +20 -20
  16. data/docs/html/classes/Test/Unit/XML/NodeIterator.src/M000013.html +13 -6
  17. data/docs/html/classes/Test/Unit/XML/NodeIterator.src/{M000011.html → M000014.html} +0 -0
  18. data/docs/html/classes/Test/Unit/XML/NodeIterator.src/{M000012.html → M000015.html} +0 -0
  19. data/docs/html/classes/Test/Unit/XML/NodeIterator.src/M000016.html +20 -0
  20. data/docs/html/classes/Test/Unit/XML/NodeIterator/NullNodeFilter.html +5 -5
  21. data/docs/html/classes/Test/Unit/XML/NodeIterator/NullNodeFilter.src/{M000014.html → M000017.html} +0 -0
  22. data/docs/html/classes/Test/Unit/XML/XmlEqualFilter.html +5 -5
  23. data/docs/html/classes/Test/Unit/XML/XmlEqualFilter.src/{M000015.html → M000018.html} +0 -0
  24. data/docs/html/created.rid +1 -1
  25. data/docs/html/files/CHANGES.html +10 -1
  26. data/docs/html/files/README.html +2 -2
  27. data/docs/html/files/lib/test/unit/xml/conditionals_rb.html +101 -0
  28. data/docs/html/files/lib/test/unit/xml/doctype_mixin_rb.html +8 -1
  29. data/docs/html/files/lib/test/unit/xml/xml_assertions_rb.html +2 -1
  30. data/docs/html/fr_class_index.html +1 -0
  31. data/docs/html/fr_file_index.html +1 -0
  32. data/docs/html/fr_method_index.html +11 -8
  33. data/lib/test/unit/xml/conditionals.rb +141 -0
  34. data/lib/test/unit/xml/doctype_mixin.rb +24 -2
  35. data/lib/test/unit/xml/xml_assertions.rb +22 -114
  36. data/test/tc_attributes_mixin.rb +37 -0
  37. data/test/tc_doctype_mixin.rb +71 -0
  38. data/test/tc_notationdecl_mixin.rb +39 -21
  39. data/test/tc_testunitxml.rb +21 -0
  40. metadata +16 -7
  41. data/docs/html/classes/Test/Unit/XML/NodeIterator.src/M000010.html +0 -27
data/CHANGES CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changes
2
2
 
3
+ == Version 0.1.5
4
+
5
+ * Fixed a bug when comparing attributes containing entity references.
6
+ * Added an <tt>assert_xml_not_equal</tt> method.
3
7
 
4
8
  == Version 0.1.4
5
9
 
data/README CHANGED
@@ -1,7 +1,7 @@
1
1
  = Test::Unit::XML
2
2
  == An XML Test Framework
3
3
 
4
- Version: 0.1.4
4
+ Version: 0.1.5
5
5
 
6
6
  Author: Henrik M�rtensson
7
7
 
@@ -10,9 +10,14 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/doctype_mixin.rb, line 9</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/doctype_mixin.rb, line 12</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">public</span>
15
- <span class="ruby-ivar">@long_name</span>
15
+ <span class="ruby-keyword kw">case</span> <span class="ruby-ivar">@external_id</span>
16
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;SYSTEM&quot;</span>
17
+ <span class="ruby-keyword kw">nil</span>
18
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;PUBLIC&quot;</span>
19
+ <span class="ruby-identifier">strip_quotes</span>(<span class="ruby-ivar">@long_name</span>)
20
+ <span class="ruby-keyword kw">end</span>
16
21
  <span class="ruby-keyword kw">end</span></pre>
17
22
  </body>
18
23
  </html>
@@ -10,9 +10,14 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/doctype_mixin.rb, line 14</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/doctype_mixin.rb, line 22</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">system</span>
15
- <span class="ruby-ivar">@uri</span>
15
+ <span class="ruby-keyword kw">case</span> <span class="ruby-ivar">@external_id</span>
16
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;SYSTEM&quot;</span>
17
+ <span class="ruby-identifier">strip_quotes</span>(<span class="ruby-ivar">@long_name</span>)
18
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;PUBLIC&quot;</span>
19
+ <span class="ruby-ivar">@uri</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">String</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">strip_quotes</span>(<span class="ruby-ivar">@uri</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span>
20
+ <span class="ruby-keyword kw">end</span>
16
21
  <span class="ruby-keyword kw">end</span></pre>
17
22
  </body>
18
23
  </html>
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/doctype_mixin.rb, line 20</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/doctype_mixin.rb, line 33</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">notations</span>
15
15
  <span class="ruby-identifier">children</span>().<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">node</span><span class="ruby-operator">|</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">NotationDecl</span>)}
16
16
  <span class="ruby-keyword kw">end</span></pre>
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/doctype_mixin.rb, line 26</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/doctype_mixin.rb, line 39</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">notation</span>(<span class="ruby-identifier">name</span>)
15
15
  <span class="ruby-identifier">notations</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">notation_decl</span><span class="ruby-operator">|</span>
16
16
  <span class="ruby-identifier">notation_decl</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">name</span>
@@ -58,6 +58,10 @@
58
58
  <a href="../files/lib/test/unit/xml_rb.html">
59
59
  lib/test/unit/xml.rb
60
60
  </a>
61
+ <br />
62
+ <a href="../files/lib/test/unit/xml/conditionals_rb.html">
63
+ lib/test/unit/xml/conditionals.rb
64
+ </a>
61
65
  <br />
62
66
  <a href="../files/lib/test/unit/xml/xmlequalfilter_rb.html">
63
67
  lib/test/unit/xml/xmlequalfilter.rb
@@ -58,6 +58,10 @@
58
58
  <a href="../../files/lib/test/unit/xml_rb.html">
59
59
  lib/test/unit/xml.rb
60
60
  </a>
61
+ <br />
62
+ <a href="../../files/lib/test/unit/xml/conditionals_rb.html">
63
+ lib/test/unit/xml/conditionals.rb
64
+ </a>
61
65
  <br />
62
66
  <a href="../../files/lib/test/unit/xml/xmlequalfilter_rb.html">
63
67
  lib/test/unit/xml/xmlequalfilter.rb
@@ -55,6 +55,10 @@
55
55
  <tr class="top-aligned-row">
56
56
  <td><strong>In:</strong></td>
57
57
  <td>
58
+ <a href="../../../files/lib/test/unit/xml/conditionals_rb.html">
59
+ lib/test/unit/xml/conditionals.rb
60
+ </a>
61
+ <br />
58
62
  <a href="../../../files/lib/test/unit/xml/xmlequalfilter_rb.html">
59
63
  lib/test/unit/xml/xmlequalfilter.rb
60
64
  </a>
@@ -89,6 +93,7 @@
89
93
 
90
94
  <div class="name-list">
91
95
  <a href="#M000009">assert_xml_equal</a>&nbsp;&nbsp;
96
+ <a href="#M000010">assert_xml_not_equal</a>&nbsp;&nbsp;
92
97
  </div>
93
98
  </div>
94
99
 
@@ -102,7 +107,8 @@
102
107
  <div id="class-list">
103
108
  <h3 class="section-bar">Classes and Modules</h3>
104
109
 
105
- Class <a href="XML/NodeIterator.html" class="link">Test::Unit::XML::NodeIterator</a><br />
110
+ Class <a href="XML/Conditionals.html" class="link">Test::Unit::XML::Conditionals</a><br />
111
+ Class <a href="XML/NodeIterator.html" class="link">Test::Unit::XML::NodeIterator</a><br />
106
112
  Class <a href="XML/XmlEqualFilter.html" class="link">Test::Unit::XML::XmlEqualFilter</a><br />
107
113
 
108
114
  </div>
@@ -260,6 +266,25 @@ href="XML.html">XML</a> document
260
266
  </div>
261
267
  </div>
262
268
 
269
+ <div id="method-M000010" class="method-detail">
270
+ <a name="M000010"></a>
271
+
272
+ <div class="method-heading">
273
+ <a href="XML.src/M000010.html" target="Code" class="method-signature"
274
+ onclick="popupCode('XML.src/M000010.html');return false;">
275
+ <span class="method-name">assert_xml_not_equal</span><span class="method-args">(expected_doc, actual_doc, message = nil)</span>
276
+ </a>
277
+ </div>
278
+
279
+ <div class="method-description">
280
+ <p>
281
+ This method compares two <a href="XML.html">XML</a> documents and returns
282
+ <tt>true</tt> if they are <em>not</em> equal, <tt>false</tt> otherwise.
283
+ This is the inverse of <a href="XML.html#M000009">assert_xml_equal</a>.
284
+ </p>
285
+ </div>
286
+ </div>
287
+
263
288
 
264
289
  </div>
265
290
 
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/xml_assertions.rb, line 95</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/xml_assertions.rb, line 96</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_xml_equal</span>(<span class="ruby-identifier">expected_doc</span>, <span class="ruby-identifier">actual_doc</span>, <span class="ruby-identifier">message</span> = <span class="ruby-keyword kw">nil</span>)
15
15
  <span class="ruby-identifier">expected_doc</span> = <span class="ruby-identifier">parse_xml</span>(<span class="ruby-identifier">expected_doc</span>)
16
16
  <span class="ruby-identifier">actual_doc</span> = <span class="ruby-identifier">parse_xml</span>(<span class="ruby-identifier">actual_doc</span>)
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>assert_xml_not_equal (Test::Unit::XML)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/xml_assertions.rb, line 113</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_xml_not_equal</span>(<span class="ruby-identifier">expected_doc</span>, <span class="ruby-identifier">actual_doc</span>, <span class="ruby-identifier">message</span> = <span class="ruby-keyword kw">nil</span>)
15
+ <span class="ruby-identifier">expected_doc</span> = <span class="ruby-identifier">parse_xml</span>(<span class="ruby-identifier">expected_doc</span>)
16
+ <span class="ruby-identifier">actual_doc</span> = <span class="ruby-identifier">parse_xml</span>(<span class="ruby-identifier">actual_doc</span>)
17
+ <span class="ruby-identifier">_wrap_assertion</span> <span class="ruby-keyword kw">do</span>
18
+ <span class="ruby-identifier">full_message</span> = <span class="ruby-identifier">build_message</span>(<span class="ruby-identifier">message</span>, <span class="ruby-value str">&quot;\n&lt;?&gt; expected not to be equal to\n&lt;?&gt; but was equal.\n&quot;</span>, <span class="ruby-identifier">actual_doc</span>.<span class="ruby-identifier">inspect</span>, <span class="ruby-identifier">expected_doc</span>.<span class="ruby-identifier">inspect</span>)
19
+ <span class="ruby-identifier">assert_block</span>(<span class="ruby-identifier">full_message</span>){ <span class="ruby-operator">!</span> <span class="ruby-identifier">are_equal?</span>(<span class="ruby-identifier">expected_doc</span>, <span class="ruby-identifier">actual_doc</span>)}
20
+ <span class="ruby-keyword kw">end</span>
21
+ <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -0,0 +1,173 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Test::Unit::XML::Conditionals</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Test::Unit::XML::Conditionals</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../../files/lib/test/unit/xml/conditionals_rb.html">
59
+ lib/test/unit/xml/conditionals.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+ <div id="description">
82
+ <p>
83
+ This singleton class compares all types of <a
84
+ href="../../../REXML.html">REXML</a> nodes.
85
+ </p>
86
+
87
+ </div>
88
+
89
+
90
+ </div>
91
+
92
+ <div id="method-list">
93
+ <h3 class="section-bar">Methods</h3>
94
+
95
+ <div class="name-list">
96
+ <a href="#M000012">compare_xml_nodes</a>&nbsp;&nbsp;
97
+ <a href="#M000011">create</a>&nbsp;&nbsp;
98
+ </div>
99
+ </div>
100
+
101
+ </div>
102
+
103
+
104
+ <!-- if includes -->
105
+
106
+ <div id="section">
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+ <!-- if method_list -->
116
+ <div id="methods">
117
+ <h3 class="section-bar">Public Class methods</h3>
118
+
119
+ <div id="method-M000011" class="method-detail">
120
+ <a name="M000011"></a>
121
+
122
+ <div class="method-heading">
123
+ <a href="Conditionals.src/M000011.html" target="Code" class="method-signature"
124
+ onclick="popupCode('Conditionals.src/M000011.html');return false;">
125
+ <span class="method-name">create</span><span class="method-args">()</span>
126
+ </a>
127
+ </div>
128
+
129
+ <div class="method-description">
130
+ <p>
131
+ The <tt>create</tt> method is used to create a singleton instance of the <a
132
+ href="Conditionals.html">Conditionals</a> class.
133
+ </p>
134
+ </div>
135
+ </div>
136
+
137
+ <h3 class="section-bar">Public Instance methods</h3>
138
+
139
+ <div id="method-M000012" class="method-detail">
140
+ <a name="M000012"></a>
141
+
142
+ <div class="method-heading">
143
+ <a href="Conditionals.src/M000012.html" target="Code" class="method-signature"
144
+ onclick="popupCode('Conditionals.src/M000012.html');return false;">
145
+ <span class="method-name">compare_xml_nodes</span><span class="method-args">(expected_node, actual_node)</span>
146
+ </a>
147
+ </div>
148
+
149
+ <div class="method-description">
150
+ <p>
151
+ The method compares two <a href="../../../REXML.html">REXML</a> nodes
152
+ representing an <a href="../XML.html">XML</a> document, or part of a
153
+ document. If the nodes are equal, the method returns <tt>true</tt>. If the
154
+ nodes are not equal, the method returns <tt>false</tt>. If the nodes have
155
+ child nodes, for example if the nodes are <tt>Element</tt> nodes with
156
+ content, they will <em>not</em> be recursively compared.
157
+ </p>
158
+ </div>
159
+ </div>
160
+
161
+
162
+ </div>
163
+
164
+
165
+ </div>
166
+
167
+
168
+ <div id="validator-badges">
169
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
170
+ </div>
171
+
172
+ </body>
173
+ </html>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>create (Test::Unit::XML::Conditionals)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/conditionals.rb, line 14</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Conditionals</span>.<span class="ruby-identifier">create</span>
15
+ <span class="ruby-ivar">@@conditionals</span> = <span class="ruby-identifier">new</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@@conditionals</span>
16
+ <span class="ruby-ivar">@@conditionals</span>
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>compare_xml_nodes (Test::Unit::XML::Conditionals)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/conditionals.rb, line 24</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">compare_xml_nodes</span>(<span class="ruby-identifier">expected_node</span>, <span class="ruby-identifier">actual_node</span>)
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">actual_node</span>.<span class="ruby-identifier">instance_of?</span> <span class="ruby-identifier">expected_node</span>.<span class="ruby-identifier">class</span>
16
+ <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">actual_node</span>
17
+ <span class="ruby-keyword kw">when</span> <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Document</span>
18
+ <span class="ruby-comment cmt"># TODO: Implement Document comparison</span>
19
+ <span class="ruby-keyword kw">true</span>
20
+ <span class="ruby-keyword kw">when</span> <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">DocType</span>
21
+ <span class="ruby-identifier">compare_doctypes</span>(<span class="ruby-identifier">expected_node</span>, <span class="ruby-identifier">actual_node</span>)
22
+ <span class="ruby-keyword kw">when</span> <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Element</span> <span class="ruby-operator">:</span>
23
+ <span class="ruby-identifier">compare_elements</span>(<span class="ruby-identifier">expected_node</span>, <span class="ruby-identifier">actual_node</span>)
24
+ <span class="ruby-keyword kw">when</span> <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">CData</span>
25
+ <span class="ruby-identifier">compare_texts</span>(<span class="ruby-identifier">expected_node</span>, <span class="ruby-identifier">actual_node</span>)
26
+ <span class="ruby-keyword kw">when</span> <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Text</span>
27
+ <span class="ruby-identifier">compare_texts</span>(<span class="ruby-identifier">expected_node</span>, <span class="ruby-identifier">actual_node</span>)
28
+ <span class="ruby-keyword kw">when</span> <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Comment</span>
29
+ <span class="ruby-identifier">compare_comments</span>(<span class="ruby-identifier">expected_node</span>, <span class="ruby-identifier">actual_node</span>)
30
+ <span class="ruby-keyword kw">when</span> <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Instruction</span>
31
+ <span class="ruby-identifier">compare_pi</span>(<span class="ruby-identifier">expected_node</span>, <span class="ruby-identifier">actual_node</span>)
32
+ <span class="ruby-keyword kw">when</span> <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">XMLDecl</span>
33
+ <span class="ruby-identifier">compare_xml_declaration</span>(<span class="ruby-identifier">expected_node</span>, <span class="ruby-identifier">actual_node</span>)
34
+ <span class="ruby-comment cmt">#when REXML::Entity</span>
35
+ <span class="ruby-comment cmt"># compare_xml_entities(expected_node, actual_node)</span>
36
+ <span class="ruby-keyword kw">else</span>
37
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Unknown node type #{actual_node.class}&quot;</span>
38
+ <span class="ruby-keyword kw">false</span>
39
+ <span class="ruby-keyword kw">end</span>
40
+ <span class="ruby-keyword kw">end</span></pre>
41
+ </body>
42
+ </html>
@@ -86,10 +86,10 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000010">find_next_node</a>&nbsp;&nbsp;
90
- <a href="#M000012">has_next</a>&nbsp;&nbsp;
91
- <a href="#M000011">new</a>&nbsp;&nbsp;
92
- <a href="#M000013">next</a>&nbsp;&nbsp;
89
+ <a href="#M000013">find_next_node</a>&nbsp;&nbsp;
90
+ <a href="#M000015">has_next</a>&nbsp;&nbsp;
91
+ <a href="#M000014">new</a>&nbsp;&nbsp;
92
+ <a href="#M000016">next</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -117,12 +117,12 @@
117
117
  <div id="methods">
118
118
  <h3 class="section-bar">Public Class methods</h3>
119
119
 
120
- <div id="method-M000010" class="method-detail">
121
- <a name="M000010"></a>
120
+ <div id="method-M000013" class="method-detail">
121
+ <a name="M000013"></a>
122
122
 
123
123
  <div class="method-heading">
124
- <a href="NodeIterator.src/M000010.html" target="Code" class="method-signature"
125
- onclick="popupCode('NodeIterator.src/M000010.html');return false;">
124
+ <a href="NodeIterator.src/M000013.html" target="Code" class="method-signature"
125
+ onclick="popupCode('NodeIterator.src/M000013.html');return false;">
126
126
  <span class="method-name">find_next_node</span><span class="method-args">(node, node_filter = NullNodeFilter.new)</span>
127
127
  </a>
128
128
  </div>
@@ -136,12 +136,12 @@ filter.
136
136
  </div>
137
137
  </div>
138
138
 
139
- <div id="method-M000011" class="method-detail">
140
- <a name="M000011"></a>
139
+ <div id="method-M000014" class="method-detail">
140
+ <a name="M000014"></a>
141
141
 
142
142
  <div class="method-heading">
143
- <a href="NodeIterator.src/M000011.html" target="Code" class="method-signature"
144
- onclick="popupCode('NodeIterator.src/M000011.html');return false;">
143
+ <a href="NodeIterator.src/M000014.html" target="Code" class="method-signature"
144
+ onclick="popupCode('NodeIterator.src/M000014.html');return false;">
145
145
  <span class="method-name">new</span><span class="method-args">(node, node_filter = NullNodeFilter.new)</span>
146
146
  </a>
147
147
  </div>
@@ -152,12 +152,12 @@ filter.
152
152
 
153
153
  <h3 class="section-bar">Public Instance methods</h3>
154
154
 
155
- <div id="method-M000012" class="method-detail">
156
- <a name="M000012"></a>
155
+ <div id="method-M000015" class="method-detail">
156
+ <a name="M000015"></a>
157
157
 
158
158
  <div class="method-heading">
159
- <a href="NodeIterator.src/M000012.html" target="Code" class="method-signature"
160
- onclick="popupCode('NodeIterator.src/M000012.html');return false;">
159
+ <a href="NodeIterator.src/M000015.html" target="Code" class="method-signature"
160
+ onclick="popupCode('NodeIterator.src/M000015.html');return false;">
161
161
  <span class="method-name">has_next</span><span class="method-args">()</span>
162
162
  </a>
163
163
  </div>
@@ -166,12 +166,12 @@ filter.
166
166
  </div>
167
167
  </div>
168
168
 
169
- <div id="method-M000013" class="method-detail">
170
- <a name="M000013"></a>
169
+ <div id="method-M000016" class="method-detail">
170
+ <a name="M000016"></a>
171
171
 
172
172
  <div class="method-heading">
173
- <a href="NodeIterator.src/M000013.html" target="Code" class="method-signature"
174
- onclick="popupCode('NodeIterator.src/M000013.html');return false;">
173
+ <a href="NodeIterator.src/M000016.html" target="Code" class="method-signature"
174
+ onclick="popupCode('NodeIterator.src/M000016.html');return false;">
175
175
  <span class="method-name">next</span><span class="method-args">()</span>
176
176
  </a>
177
177
  </div>