testunitxml 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/README +1 -1
- data/docs/html/classes/REXML/DocType.src/M000005.html +7 -2
- data/docs/html/classes/REXML/DocType.src/M000006.html +7 -2
- data/docs/html/classes/REXML/DocType.src/M000007.html +1 -1
- data/docs/html/classes/REXML/DocType.src/M000008.html +1 -1
- data/docs/html/classes/Test.html +4 -0
- data/docs/html/classes/Test/Unit.html +4 -0
- data/docs/html/classes/Test/Unit/XML.html +26 -1
- data/docs/html/classes/Test/Unit/XML.src/M000009.html +1 -1
- data/docs/html/classes/Test/Unit/XML.src/M000010.html +23 -0
- data/docs/html/classes/Test/Unit/XML/Conditionals.html +173 -0
- data/docs/html/classes/Test/Unit/XML/Conditionals.src/M000011.html +19 -0
- data/docs/html/classes/Test/Unit/XML/Conditionals.src/M000012.html +42 -0
- data/docs/html/classes/Test/Unit/XML/NodeIterator.html +20 -20
- data/docs/html/classes/Test/Unit/XML/NodeIterator.src/M000013.html +13 -6
- data/docs/html/classes/Test/Unit/XML/NodeIterator.src/{M000011.html → M000014.html} +0 -0
- data/docs/html/classes/Test/Unit/XML/NodeIterator.src/{M000012.html → M000015.html} +0 -0
- data/docs/html/classes/Test/Unit/XML/NodeIterator.src/M000016.html +20 -0
- data/docs/html/classes/Test/Unit/XML/NodeIterator/NullNodeFilter.html +5 -5
- data/docs/html/classes/Test/Unit/XML/NodeIterator/NullNodeFilter.src/{M000014.html → M000017.html} +0 -0
- data/docs/html/classes/Test/Unit/XML/XmlEqualFilter.html +5 -5
- data/docs/html/classes/Test/Unit/XML/XmlEqualFilter.src/{M000015.html → M000018.html} +0 -0
- data/docs/html/created.rid +1 -1
- data/docs/html/files/CHANGES.html +10 -1
- data/docs/html/files/README.html +2 -2
- data/docs/html/files/lib/test/unit/xml/conditionals_rb.html +101 -0
- data/docs/html/files/lib/test/unit/xml/doctype_mixin_rb.html +8 -1
- data/docs/html/files/lib/test/unit/xml/xml_assertions_rb.html +2 -1
- data/docs/html/fr_class_index.html +1 -0
- data/docs/html/fr_file_index.html +1 -0
- data/docs/html/fr_method_index.html +11 -8
- data/lib/test/unit/xml/conditionals.rb +141 -0
- data/lib/test/unit/xml/doctype_mixin.rb +24 -2
- data/lib/test/unit/xml/xml_assertions.rb +22 -114
- data/test/tc_attributes_mixin.rb +37 -0
- data/test/tc_doctype_mixin.rb +71 -0
- data/test/tc_notationdecl_mixin.rb +39 -21
- data/test/tc_testunitxml.rb +21 -0
- metadata +16 -7
- data/docs/html/classes/Test/Unit/XML/NodeIterator.src/M000010.html +0 -27
@@ -1,27 +0,0 @@
|
|
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>find_next_node (Test::Unit::XML::NodeIterator)</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/nodeiterator.rb, line 17</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">NodeIterator</span>.<span class="ruby-identifier">find_next_node</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">node_filter</span> = <span class="ruby-constant">NullNodeFilter</span>.<span class="ruby-identifier">new</span>)
|
15
|
-
<span class="ruby-identifier">next_node</span> = <span class="ruby-keyword kw">nil</span>
|
16
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">NodeIterator</span>.<span class="ruby-identifier">has_children?</span>(<span class="ruby-identifier">node</span>) <span class="ruby-keyword kw">then</span>
|
17
|
-
<span class="ruby-identifier">next_node</span> = <span class="ruby-identifier">node</span>[<span class="ruby-value">0</span>] <span class="ruby-comment cmt"># The index should be 1 according to the REXML docs
|
18
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">next_sibling_node</span>
|
19
|
-
<span class="ruby-identifier">next_node</span> = <span class="ruby-identifier">node</span>.<span class="ruby-identifier">next_sibling_node</span>
|
20
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">NodeIterator</span>.<span class="ruby-identifier">has_parent_with_sibling?</span>(<span class="ruby-identifier">node</span>)
|
21
|
-
<span class="ruby-identifier">next_node</span> = <span class="ruby-identifier">node</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">next_sibling_node</span>
|
22
|
-
<span class="ruby-keyword kw">end</span>
|
23
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">next_node</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node_filter</span>.<span class="ruby-identifier">accept</span>(<span class="ruby-identifier">next_node</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">next_node</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
24
|
-
<span class="ruby-identifier">find_next_node</span>(<span class="ruby-identifier">next_node</span>, <span class="ruby-identifier">node_filter</span>)
|
25
|
-
<span class="ruby-keyword kw">end</span></pre>
|
26
|
-
</body>
|
27
|
-
</html>
|