Lines Matching refs:child
99 for child_id, child in expected_children.iteritems():
103 self.AssertEquivalentNodes(child, actual_children[child_id])
126 for child in element.childNodes:
127 if child.nodeType == Node.ELEMENT_NODE:
128 self.assert_(child.tagName in self.identifying_attribute,
129 "Encountered unknown element <%s>" % child.tagName)
130 childID = child.getAttribute(self.identifying_attribute[child.tagName])
132 children[childID] = child
133 elif child.nodeType in [Node.TEXT_NODE, Node.CDATA_SECTION_NODE]:
135 if (child.nodeType == Node.CDATA_SECTION_NODE or
136 not child.nodeValue.isspace()):
137 children["detail"] = child.ownerDocument.createCDATASection(
138 child.nodeValue)
140 children["detail"].nodeValue += child.nodeValue
142 self.fail("Encountered unexpected node type %d" % child.nodeType)
163 for child in element.childNodes:
164 if child.nodeType == Node.CDATA_SECTION_NODE:
166 cdata = re.sub(r"^.*[/\\](.*:)\d+\n", "\\1*\n", child.nodeValue)
168 child.nodeValue = re.sub(r"\nStack trace:\n(.|\n)*",
170 for child in element.childNodes:
171 if child.nodeType == Node.ELEMENT_NODE:
172 self.NormalizeXml(child)