You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Change a number property with a value that will be sanitized
703
+
{
704
+
property_name: 'shadowAngle',
705
+
new_value: '20,40 , 50',
706
+
},
707
+
{
708
+
property_name: 'shadowDistance',
709
+
new_value: '20X 40 X 50',
710
+
},
711
+
{
712
+
property_name: 'shadowBlurRadius',
713
+
new_value: '20.41 × 50',
714
+
},
715
+
],
716
+
},
717
+
}
718
+
);
719
+
720
+
// The operation should succeed overall (some changes were made)
721
+
expect(result.success).toBe(true);
722
+
expect(result.message).toMatchInlineSnapshot(`
723
+
"Successfully done some changes but some issues were found - see the warnings.
724
+
Changed property \\"characterSize\\" of object \\"MyTextObject\\" to \\"56\\".
725
+
Changed property \\"verticalTextAlignment\\" of object \\"MyTextObject\\" to \\"bottom\\".
726
+
Changed property \\"bold\\" of object \\"MyTextObject\\" to \\"true\\".
727
+
Changed property \\"isShadowEnabled\\" of object \\"MyTextObject\\" to \\"true\\".
728
+
Changed property \\"italic\\" of object \\"MyTextObject\\" to \\"false\\".
729
+
Changed property \\"shadowAngle\\" of object \\"MyTextObject\\" to \\"20\\".
730
+
Changed property \\"shadowDistance\\" of object \\"MyTextObject\\" to \\"0\\".
731
+
Changed property \\"shadowBlurRadius\\" of object \\"MyTextObject\\" to \\"20.41\\".
732
+
Warnings:
733
+
Could not change property \\"textAlignment\\" of object \\"MyTextObject\\". The value might be invalid, of the wrong type or not allowed.
734
+
Property not found: nonExistingProperty on object MyTextObject.
735
+
Property \\"shadowAngle\\" of object \\"MyTextObject\\" was changed to 20 - but the original requested value (20,40 , 50) looks like a size with multiple dimensions. This is not supported, only a number is allowed here.
736
+
Property \\"shadowDistance\\" of object \\"MyTextObject\\" was changed to 0 - but the original requested value (20X 40 X 50) looks like a size with multiple dimensions. This is not supported, only a number is allowed here.
737
+
Property \\"shadowBlurRadius\\" of object \\"MyTextObject\\" was changed to 20.41 - but the original requested value (20.41 × 50) looks like a size with multiple dimensions. This is not supported, only a number is allowed here."
// The operation should succeed overall (some changes were made)
823
+
expect(result.success).toBe(true);
824
+
expect(result.message).toMatchInlineSnapshot(`
825
+
"Successfully done some changes but some issues were found - see the warnings.
826
+
Changed property \\"Gravity\\" of behavior \\"PlatformerObject\\" to \\"1500\\".
827
+
Changed property \\"JumpSpeed\\" of behavior \\"PlatformerObject\\" to \\"800\\".
828
+
Changed property \\"MaxSpeed\\" of behavior \\"PlatformerObject\\" to \\"300\\".
829
+
Changed property \\"CanGrabPlatforms\\" of behavior \\"PlatformerObject\\" to \\"true\\".
830
+
Changed property \\"IgnoreDefaultControls\\" of behavior \\"PlatformerObject\\" to \\"false\\".
831
+
Warnings:
832
+
Property \\"MaxSpeed\\" of behavior \\"PlatformerObject\\" was changed to 300 - but the original requested value (300 x 20) looks like a size with multiple dimensions. This is not supported, only a number is allowed here.
833
+
Property \\"nonExistingProperty\\" not found on behavior \\"PlatformerObject\\" of object \\"MySprite\\"."
834
+
`);
835
+
836
+
// Verify the behavior properties were actually changed
0 commit comments