webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
def | AssertEquivalentNodes (self, expected_node, actual_node) |
def | NormalizeXml (self, element) |
Static Public Attributes | |
dictionary | identifying_attribute |
Base class for tests of Google Test's XML output functionality.
def gtest_xml_test_utils.GTestXMLTestCase.AssertEquivalentNodes | ( | self, | |
expected_node, | |||
actual_node | |||
) |
Asserts that actual_node (a DOM node object) is equivalent to expected_node (another DOM node object), in that either both of them are CDATA nodes and have the same value, or both are DOM elements and actual_node meets all of the following conditions: * It has the same tag name as expected_node. * It has the same set of attributes as expected_node, each with the same value as the corresponding attribute of expected_node. An exception is any attribute named "time", which needs only be convertible to a floating-point number. * It has an equivalent set of child nodes (including elements and CDATA sections) as expected_node. Note that we ignore the order of the children as they are not guaranteed to be in any particular order.
def gtest_xml_test_utils.GTestXMLTestCase.NormalizeXml | ( | self, | |
element | |||
) |
Normalizes Google Test's XML output to eliminate references to transient information that may change from run to run. * The "time" attribute of <testsuites>, <testsuite> and <testcase> elements is replaced with a single asterisk, if it contains only digit characters. * The line number reported in the first line of the "message" attribute of <failure> elements is replaced with a single asterisk. * The directory names in file paths are removed. * The stack traces are removed.
|
static |