[render-test] Prettyfy metrics output

This commit is contained in:
Thiago Marcos P. Santos
2019-10-11 17:06:37 +03:00
parent acd7fba3d5
commit 307f9cede1
5 changed files with 57 additions and 5 deletions

View File

@@ -270,7 +270,7 @@ std::string serializeJsonValue(const mbgl::JSValue& value) {
std::string serializeMetrics(const TestMetrics& metrics) {
rapidjson::StringBuffer s;
rapidjson::Writer<rapidjson::StringBuffer> writer(s);
rapidjson::PrettyWriter<rapidjson::StringBuffer> writer(s);
writer.StartObject();

View File

@@ -1 +1,14 @@
{"fileSize":[["image","foo.123",442],["style","bar.321",609]]}
{
"fileSize": [
[
"image",
"expected.aaa",
169
],
[
"style",
"style.bbbb",
510
]
]
}

View File

@@ -1 +1,14 @@
{"fileSize":[["image","expected.png",999],["style","style.json",999]]}
{
"fileSize": [
[
"image",
"expected.png",
999
],
[
"style",
"style.json",
999
]
]
}

View File

@@ -1 +1,14 @@
{"fileSize":[["image","expected.png",100],["style","style.json",100]]}
{
"fileSize": [
[
"image",
"expected.png",
100
],
[
"style",
"style.json",
100
]
]
}

View File

@@ -1 +1,14 @@
{"fileSize":[["image","expected.png",169],["style","style.json",510]]}
{
"fileSize": [
[
"image",
"expected.png",
169
],
[
"style",
"style.json",
510
]
]
}