Fix Gold json for digest paramset (#64757)

This commit is contained in:
Kate Lovett 2020-08-27 17:48:05 -07:00 committed by GitHub
parent 5a4fa220e2
commit cad4d1333e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -168,7 +168,7 @@ String digestResponseTemplate({
"status": "positive",
"paramset": {
"Platform": [
"macos"
"$platform"
],
"ext": [
"png"

View File

@ -687,7 +687,9 @@ class SkiaGoldDigest {
factory SkiaGoldDigest.fromJson(Map<String, dynamic> json) {
return SkiaGoldDigest(
imageHash: json['digest'] as String,
paramSet: Map<String, dynamic>.from(json['paramset'] as Map<String, dynamic>? ??
paramSet:
Map<String, dynamic>.from(
json['refDiffs']['pos']['paramset'] as Map<String, dynamic>? ??
<String, List<String>>{
'Platform': <String>[],
'Browser' : <String>[],