summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-05 15:00:31 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-05 15:00:31 +0100
commit798582acf0610899792e71d9f186710245eff872 (patch)
treead64b67eceefc4640b25fe8decb47ee9e8ec9cdc /tests
parent1fb998775bd24348a4dbaef37fcab9274dd23ba9 (diff)
parent0d25d8e7fcb9db82e2017de3ca5281fcd28ddcf5 (diff)
Merge pull request #65609 from dalexeev/animated-sprite
`AnimatedSprite{2D,3D}` improvements
Diffstat (limited to 'tests')
-rw-r--r--tests/scene/test_sprite_frames.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/scene/test_sprite_frames.h b/tests/scene/test_sprite_frames.h
index b0179a32b5..bf127cd42c 100644
--- a/tests/scene/test_sprite_frames.h
+++ b/tests/scene/test_sprite_frames.h
@@ -210,9 +210,9 @@ TEST_CASE("[SpriteFrames] Frame addition, removal, and retrieval") {
frames.get_frame_count(test_animation_name) == 0,
"Animation has a default frame count of 0");
- frames.add_frame(test_animation_name, dummy_frame1, 0);
- frames.add_frame(test_animation_name, dummy_frame1, 1);
- frames.add_frame(test_animation_name, dummy_frame1, 2);
+ frames.add_frame(test_animation_name, dummy_frame1, 1.0, 0);
+ frames.add_frame(test_animation_name, dummy_frame1, 1.0, 1);
+ frames.add_frame(test_animation_name, dummy_frame1, 1.0, 2);
CHECK_MESSAGE(
frames.get_frame_count(test_animation_name) == 3,
@@ -227,7 +227,7 @@ TEST_CASE("[SpriteFrames] Frame addition, removal, and retrieval") {
// These error handling cases should not crash.
ERR_PRINT_OFF;
- frames.add_frame("does not exist", dummy_frame1, 0);
+ frames.add_frame("does not exist", dummy_frame1, 1.0, 0);
frames.remove_frame(test_animation_name, -99);
frames.remove_frame("does not exist", 0);
ERR_PRINT_ON;