Lines Matching refs:element
83 'attribute numbers differ in element %s:\nExpected: %r\nActual: %r' % (
91 'expected attribute %s not found in element %s' %
95 ' values of attribute %s in element %s differ: %s vs %s' %
103 'number of child elements differ in element ' + actual_node.tagName)
106 '<%s> is not in <%s> (in element %s)' %
117 def _GetChildren(self, element):
119 Fetches all of the child nodes of element, a DOM Element object.
125 "detail". An exception is raised if any element other than the above
131 for child in element.childNodes:
134 'Encountered unknown element <%s>' % child.tagName)
150 def NormalizeXml(self, element):
170 if element.tagName == 'testsuites':
171 timestamp = element.getAttributeNode('timestamp')
174 if element.tagName in ('testsuites', 'testsuite', 'testcase'):
175 time = element.getAttributeNode('time')
177 type_param = element.getAttributeNode('type_param')
180 elif element.tagName == 'failure':
183 message = element.getAttributeNode('message')
185 for child in element.childNodes:
192 for child in element.childNodes: