Lines Matching full:child
62 * It has an equivalent set of child nodes (including elements and
89 for child_id, child in expected_children.iteritems():
92 self.AssertEquivalentNodes(child, actual_children[child_id])
102 Fetches all of the child nodes of element, a DOM Element object.
108 above four is encountered, if two child elements with the same
115 for child in element.childNodes:
116 if child.nodeType == Node.ELEMENT_NODE:
117 self.assert_(child.tagName in self.identifying_attribute,
118 "Encountered unknown element <%s>" % child.tagName)
119 childID = child.getAttribute(self.identifying_attribute[child.tagName])
121 children[childID] = child
122 elif child.nodeType == Node.TEXT_NODE:
123 self.assert_(child.nodeValue.isspace())
124 elif child.nodeType == Node.CDATA_SECTION_NODE:
126 children["detail"] = child
128 self.fail("Encountered unexpected node type %d" % child.nodeType)
149 for child in element.childNodes:
150 if child.nodeType == Node.CDATA_SECTION_NODE:
152 cdata = re.sub(r"^.*/(.*:)\d+\n", "\\1*\n", child.nodeValue)
154 child.nodeValue = re.sub(r"\nStack trace:\n(.|\n)*",
156 for child in element.childNodes:
157 if child.nodeType == Node.ELEMENT_NODE:
158 self.NormalizeXml(child)