Unverified Commit 26f9d557 authored by victordk13's avatar victordk13 Committed by GitHub
Browse files

Format test properties in xml printer

parent 5b401530
...@@ -4436,15 +4436,15 @@ void XmlUnitTestResultPrinter::OutputXmlTestProperties( ...@@ -4436,15 +4436,15 @@ void XmlUnitTestResultPrinter::OutputXmlTestProperties(
return; return;
} }
*stream << "<" << kProperties << ">\n"; *stream << " <" << kProperties << ">\n";
for (int i = 0; i < result.test_property_count(); ++i) { for (int i = 0; i < result.test_property_count(); ++i) {
const TestProperty& property = result.GetTestProperty(i); const TestProperty& property = result.GetTestProperty(i);
*stream << "<" << kProperty; *stream << " <" << kProperty;
*stream << " name=\"" << EscapeXmlAttribute(property.key()) << "\""; *stream << " name=\"" << EscapeXmlAttribute(property.key()) << "\"";
*stream << " value=\"" << EscapeXmlAttribute(property.value()) << "\""; *stream << " value=\"" << EscapeXmlAttribute(property.value()) << "\"";
*stream << "/>\n"; *stream << "/>\n";
} }
*stream << "</" << kProperties << ">\n"; *stream << " </" << kProperties << ">\n";
} }
// End XmlUnitTestResultPrinter // End XmlUnitTestResultPrinter
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment