Skip to content

Commit f7aebef

Browse files
committed
Add no costumes test for switch costume block
1 parent 8f554c0 commit f7aebef

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/blocks/looks_blocks_test.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,17 @@ TEST_F(LooksBlocksTest, Size_Stage)
599599
ASSERT_EQ(Value(list->data()[0]).toDouble(), 100);
600600
}
601601

602+
TEST_F(LooksBlocksTest, SwitchCostumeTo_NoCostumes)
603+
{
604+
auto sprite = std::make_shared<Sprite>();
605+
ScriptBuilder builder(m_extension.get(), m_engine, sprite);
606+
607+
builder.addBlock("looks_switchcostumeto");
608+
builder.addDropdownInput("COSTUME", "costume2");
609+
builder.build();
610+
builder.run();
611+
}
612+
602613
TEST_F(LooksBlocksTest, SwitchCostumeTo_CostumeName)
603614
{
604615
auto sprite = std::make_shared<Sprite>();

0 commit comments

Comments
 (0)