Format the merged community fixes (#561-#566 follow-up)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QiAJeFttZp83Fh7YuzAR5f
This commit is contained in:
@@ -553,10 +553,7 @@ fn new_text_rejects_malformed_positions_without_creating_a_layer() {
|
||||
assert!(s.active_comp().unwrap().layers.is_empty());
|
||||
}
|
||||
s.execute("layer.newText", json!({"name": "Valid", "text": "Hello", "position": [10, 20]})).unwrap();
|
||||
assert_eq!(
|
||||
s.active_comp().unwrap().layers[0].props.prop("transform/position").unwrap().value,
|
||||
effectcraft_keyframe::Value::Vec3([10.0, 20.0, 0.0])
|
||||
);
|
||||
assert_eq!(s.active_comp().unwrap().layers[0].props.prop("transform/position").unwrap().value, effectcraft_keyframe::Value::Vec3([10.0, 20.0, 0.0]));
|
||||
s.execute("layer.newText", json!({"text": "No explicit position"})).unwrap();
|
||||
assert_eq!(s.active_comp().unwrap().layers.len(), 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user