Skip to content

Commit 3421390

Browse files
committed
Add (disabled) test for backdrop broadcasts
1 parent 9b969e8 commit 3421390

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

test/backdrop_broadcasts.sb3

2.29 KB
Binary file not shown.

test/engine/engine_test.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,31 @@ TEST(EngineTest, Clones)
489489
}
490490
}
491491

492+
// TODO: Uncomment this after fixing #256 and #257
493+
/*TEST(EngineTest, BackdropBroadcasts)
494+
{
495+
// TODO: Set "infinite" FPS (#254)
496+
Project p("backdrop_broadcasts.sb3");
497+
ASSERT_TRUE(p.load());
498+
p.run();
499+
500+
auto engine = p.engine();
501+
502+
Target *stage = engine->targetAt(engine->findTarget("Stage"));
503+
ASSERT_TRUE(stage);
504+
505+
ASSERT_VAR(stage, "test1");
506+
ASSERT_EQ(GET_VAR(stage, "test1")->value().toInt(), 4);
507+
ASSERT_VAR(stage, "test2");
508+
ASSERT_EQ(GET_VAR(stage, "test2")->value().toInt(), 14);
509+
ASSERT_VAR(stage, "test3");
510+
ASSERT_EQ(GET_VAR(stage, "test3")->value().toInt(), 10);
511+
ASSERT_VAR(stage, "test4");
512+
ASSERT_EQ(GET_VAR(stage, "test4")->value().toInt(), 10);
513+
ASSERT_VAR(stage, "test5");
514+
ASSERT_EQ(GET_VAR(stage, "test5")->value().toString(), "2 2 0 0");
515+
}*/
516+
492517
TEST(EngineTest, NoCrashAfterStop)
493518
{
494519
// Regtest for #186

0 commit comments

Comments
 (0)