Lines Matching refs:expected_node
51 def AssertEquivalentNodes(self, expected_node, actual_node):
54 expected_node (another DOM node object), in that either both of
58 * It has the same tag name as expected_node.
59 * It has the same set of attributes as expected_node, each with
60 the same value as the corresponding attribute of expected_node.
65 CDATA sections) as expected_node. Note that we ignore the
70 if expected_node.nodeType == Node.CDATA_SECTION_NODE:
72 self.assertEquals(expected_node.nodeValue, actual_node.nodeValue)
76 self.assertEquals(Node.ELEMENT_NODE, expected_node.nodeType)
77 self.assertEquals(expected_node.tagName, actual_node.tagName)
79 expected_attributes = expected_node.attributes
99 expected_children = self._GetChildren(expected_node)