Skip to content

Commit

Permalink
Add (disabled) test for backdrop broadcasts
Browse files Browse the repository at this point in the history
  • Loading branch information
adazem009 committed Oct 14, 2023
1 parent cd5b067 commit f88fa20
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Binary file added test/backdrop_broadcasts.sb3
Binary file not shown.
24 changes: 24 additions & 0 deletions test/engine/engine_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,30 @@ TEST(EngineTest, Clones)
}
}

// TODO: Uncomment this after fixing #256
/*TEST(EngineTest, BackdropBroadcasts)
{
Project p("backdrop_broadcast.sb3");
ASSERT_TRUE(p.load());
p.run();
auto engine = p.engine();
Target *stage = engine->targetAt(engine->findTarget("Stage"));
ASSERT_TRUE(stage);
ASSERT_VAR(stage, "test1");
ASSERT_EQ(GET_VAR(stage, "test1")->value().toInt(), 5);
ASSERT_VAR(stage, "test2");
ASSERT_EQ(GET_VAR(stage, "test2")->value().toInt(), 14);
ASSERT_VAR(stage, "test3");
ASSERT_EQ(GET_VAR(stage, "test3")->value().toInt(), 10);
ASSERT_VAR(stage, "test4");
ASSERT_EQ(GET_VAR(stage, "test4")->value().toInt(), 10);
ASSERT_VAR(stage, "test5");
ASSERT_EQ(GET_VAR(stage, "test5")->value().toString(), "2 2 0 0");
}*/

TEST(EngineTest, NoCrashAfterStop)
{
// Regtest for #186
Expand Down

0 comments on commit f88fa20

Please sign in to comment.