Skip to content

Commit 07758b6

Browse files
committed
Sprite: Add missing test for empty bubble text
1 parent d6190ef commit 07758b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/scratch_classes/sprite_test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,4 +904,9 @@ TEST(SpriteTest, BubbleTextRedraw)
904904

905905
EXPECT_CALL(engine, requestRedraw).Times(0);
906906
sprite.bubble()->setText("");
907+
908+
EXPECT_CALL(engine, requestRedraw());
909+
sprite.setVisible(true);
910+
EXPECT_CALL(engine, requestRedraw).Times(0);
911+
sprite.bubble()->setText("");
907912
}

0 commit comments

Comments
 (0)