Home | History | Annotate | Download | only in test

Lines Matching refs:child

64     *  It has an equivalent set of child nodes (including elements and
103 'number of child elements differ in element ' + actual_node.tagName)
104 for child_id, child in expected_children.iteritems():
108 self.AssertEquivalentNodes(child, actual_children[child_id])
119 Fetches all of the child nodes of element, a DOM Element object.
126 four is encountered, if two child elements with the same identifying
131 for child in element.childNodes:
132 if child.nodeType == Node.ELEMENT_NODE:
133 self.assert_(child.tagName in self.identifying_attribute,
134 'Encountered unknown element <%s>' % child.tagName)
135 childID = child.getAttribute(self.identifying_attribute[child.tagName])
137 children[childID] = child
138 elif child.nodeType in [Node.TEXT_NODE, Node.CDATA_SECTION_NODE]:
140 if (child.nodeType == Node.CDATA_SECTION_NODE or
141 not child.nodeValue.isspace()):
142 children['detail'] = child.ownerDocument.createCDATASection(
143 child.nodeValue)
145 children['detail'].nodeValue += child.nodeValue
147 self.fail('Encountered unexpected node type %d' % child.nodeType)
185 for child in element.childNodes:
186 if child.nodeType == Node.CDATA_SECTION_NODE:
188 cdata = re.sub(source_line_pat, '\\1*\n', child.nodeValue)
190 child.nodeValue = re.sub(r'\nStack trace:\n(.|\n)*',
192 for child in element.childNodes:
193 if child.nodeType == Node.ELEMENT_NODE:
194 self.NormalizeXml(child)