Avoid duplicate geometry fixture variable in scaled-move coverage
This commit is contained in:
@@ -275,8 +275,8 @@ func TestCanonicalModelMigrationAndIncrementalLifecycle(t *testing.T) {
|
|||||||
modelChange{Kind: "element", ID: memberID, Before: modelJSON(nil), After: modelJSON(member)})
|
modelChange{Kind: "element", ID: memberID, Before: modelJSON(nil), After: modelJSON(member)})
|
||||||
model = read()
|
model = read()
|
||||||
oldGeometry := model.Elements[innerFrame]["geometry"]
|
oldGeometry := model.Elements[innerFrame]["geometry"]
|
||||||
geometry := oldGeometry.(map[string]any)
|
containerGeometry := oldGeometry.(map[string]any)
|
||||||
normalizedGeometry := response{"x": (geometry["x"].(float64) - 24) / 2, "y": (geometry["y"].(float64) - 36) / 2, "width": geometry["width"].(float64) / 2, "height": geometry["height"].(float64) / 2, "rotation": geometry["rotation"]}
|
normalizedGeometry := response{"x": (containerGeometry["x"].(float64) - 24) / 2, "y": (containerGeometry["y"].(float64) - 36) / 2, "width": containerGeometry["width"].(float64) / 2, "height": containerGeometry["height"].(float64) / 2, "rotation": containerGeometry["rotation"]}
|
||||||
normalizedPresentation := response{"contentScale": .75, "unitScale": .5, "future": response{"keep": "metadata"}}
|
normalizedPresentation := response{"contentScale": .75, "unitScale": .5, "future": response{"keep": "metadata"}}
|
||||||
movedInner := inner
|
movedInner := inner
|
||||||
movedInner.Parent = &modelParent{CanvasID: newCanvas, EntryElementID: innerFrame}
|
movedInner.Parent = &modelParent{CanvasID: newCanvas, EntryElementID: innerFrame}
|
||||||
|
|||||||
Reference in New Issue
Block a user