Unverified Commit cad4d133 authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Fix Gold json for digest paramset (#64757)

parent 5a4fa220
...@@ -168,7 +168,7 @@ String digestResponseTemplate({ ...@@ -168,7 +168,7 @@ String digestResponseTemplate({
"status": "positive", "status": "positive",
"paramset": { "paramset": {
"Platform": [ "Platform": [
"macos" "$platform"
], ],
"ext": [ "ext": [
"png" "png"
......
...@@ -687,7 +687,9 @@ class SkiaGoldDigest { ...@@ -687,7 +687,9 @@ class SkiaGoldDigest {
factory SkiaGoldDigest.fromJson(Map<String, dynamic> json) { factory SkiaGoldDigest.fromJson(Map<String, dynamic> json) {
return SkiaGoldDigest( return SkiaGoldDigest(
imageHash: json['digest'] as String, 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>>{ <String, List<String>>{
'Platform': <String>[], 'Platform': <String>[],
'Browser' : <String>[], 'Browser' : <String>[],
......
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