diff --git a/test/backdrop_broadcasts.sb3 b/test/backdrop_broadcasts.sb3 new file mode 100644 index 00000000..30acc180 Binary files /dev/null and b/test/backdrop_broadcasts.sb3 differ diff --git a/test/engine/engine_test.cpp b/test/engine/engine_test.cpp index b621449c..98a85414 100644 --- a/test/engine/engine_test.cpp +++ b/test/engine/engine_test.cpp @@ -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