Lines Matching refs:element
80 'attribute numbers differ in element %s:\nExpected: %r\nActual: %r'
92 'expected attribute %s not found in element %s'
98 ' values of attribute %s in element %s differ: %s vs %s'
112 'number of child elements differ in element ' + actual_node.tagName,
117 '<%s> is not in <%s> (in element %s)'
131 def _GetChildren(self, element):
132 """Fetches all of the child nodes of element, a DOM Element object.
140 CDATA section with ID "detail". An exception is raised if any element other
146 element: DOM Element object
153 for child in element.childNodes:
158 'Encountered <properties> element without a parent',
164 'Encountered unknown element <%s>' % child.tagName,
186 def NormalizeXml(self, element):
207 element: DOM element to normalize
210 if element.tagName == 'testcase':
211 source_file = element.getAttributeNode('file')
214 if element.tagName in ('testsuites', 'testsuite', 'testcase'):
215 timestamp = element.getAttributeNode('timestamp')
219 if element.tagName in ('testsuites', 'testsuite', 'testcase'):
220 time = element.getAttributeNode('time')
224 type_param = element.getAttributeNode('type_param')
227 elif element.tagName == 'failure' or element.tagName == 'skipped':
230 message = element.getAttributeNode('message')
232 for child in element.childNodes:
240 for child in element.childNodes: