[render-test] Prettyfy metrics output
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -1 +1,14 @@
|
||||
{"fileSize":[["image","foo.123",442],["style","bar.321",609]]}
|
||||
{
|
||||
"fileSize": [
|
||||
[
|
||||
"image",
|
||||
"expected.aaa",
|
||||
169
|
||||
],
|
||||
[
|
||||
"style",
|
||||
"style.bbbb",
|
||||
510
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1 +1,14 @@
|
||||
{"fileSize":[["image","expected.png",999],["style","style.json",999]]}
|
||||
{
|
||||
"fileSize": [
|
||||
[
|
||||
"image",
|
||||
"expected.png",
|
||||
999
|
||||
],
|
||||
[
|
||||
"style",
|
||||
"style.json",
|
||||
999
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1 +1,14 @@
|
||||
{"fileSize":[["image","expected.png",100],["style","style.json",100]]}
|
||||
{
|
||||
"fileSize": [
|
||||
[
|
||||
"image",
|
||||
"expected.png",
|
||||
100
|
||||
],
|
||||
[
|
||||
"style",
|
||||
"style.json",
|
||||
100
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1 +1,14 @@
|
||||
{"fileSize":[["image","expected.png",169],["style","style.json",510]]}
|
||||
{
|
||||
"fileSize": [
|
||||
[
|
||||
"image",
|
||||
"expected.png",
|
||||
169
|
||||
],
|
||||
[
|
||||
"style",
|
||||
"style.json",
|
||||
510
|
||||
]
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user